Class RemoteCacheServer<K,V>

java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.commons.jcs3.auxiliary.remote.server.RemoteCacheServer<K,V>
All Implemented Interfaces:
Serializable, Remote, Unreferenced, IRemoteCacheServer<K,V>, ICacheObserver, ICacheService<K,V>, ICacheServiceAdmin, ICacheServiceNonLocal<K,V>

public class RemoteCacheServer<K,V> extends UnicastRemoteObject implements IRemoteCacheServer<K,V>, Unreferenced
This class provides remote cache services. The remote cache server propagates events from local caches to other local caches. It can also store cached data, making it available to new clients.

Remote cache servers can be clustered. If the cache used by this remote cache is configured to use a remote cache of type cluster, the two remote caches will communicate with each other. Remote and put requests can be sent from one remote to another. If they are configured to broadcast such event to their client, then remove an puts can be sent to all locals in the cluster.

Get requests are made between clustered servers if AllowClusterGet is true. You can setup several clients to use one remote server and several to use another. The get local will be distributed between the two servers. Since caches are usually high get and low put, this should allow you to scale.

See Also: