Class RemoteCacheListener<K,V> 
java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheListener<K,V>
 
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheListener<K,V> 
- All Implemented Interfaces:
- Remote,- IRemoteCacheConstants,- IRemoteCacheListener<K,,- V> - ICacheListener<K,- V> 
public class RemoteCacheListener<K,V> 
extends AbstractRemoteCacheListener<K,V>
implements IRemoteCacheConstants 
Registered with RemoteCache server. The server updates the local caches via this listener. Each
 server assigns a unique listener id for a listener.
 
One listener is used per remote cache server. The same listener is used for all the regions that talk to a particular server.
- 
Field SummaryFields inherited from interface org.apache.commons.jcs3.auxiliary.remote.behavior.IRemoteCacheConstantsCACHE_SERVER_ATTRIBUTES_PROPERTY_PREFIX, CACHE_SERVER_PREFIX, CUSTOM_RMI_SOCKET_FACTORY_PROPERTY_PREFIX, PROPERTY_PREFIX, REMOTE_ALLOW_CLUSTER_GET, REMOTE_CACHE_SERVICE_NAME, REMOTE_CACHE_SERVICE_PORT, REMOTE_CACHE_SERVICE_VAL, REMOTE_LOCAL_CLUSTER_CONSISTENCY, SOCKET_TIMEOUT_MILLIS, TOMCAT_ON, TOMCAT_XML
- 
Constructor SummaryConstructorsConstructorDescriptionRemoteCacheListener(IRemoteCacheAttributes irca, ICompositeCacheManager cacheMgr, IElementSerializer elementSerializer) Only need one since it does work for all regions, just reference by multiple region names.
- 
Method SummaryMethods inherited from class org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheListenergetCacheManager, getListenerId, getLocalHostAddress, getRemoteType, handleDispose, handlePut, handleRemove, handleRemoveAll, setListenerId
- 
Constructor Details- 
RemoteCacheListenerpublic RemoteCacheListener(IRemoteCacheAttributes irca, ICompositeCacheManager cacheMgr, IElementSerializer elementSerializer) Only need one since it does work for all regions, just reference by multiple region names.The constructor exports this object, making it available to receive incoming calls. The callback port is anonymous unless a local port value was specified in the configuration. - Parameters:
- irca- cache configuration
- cacheMgr- the cache hub
- elementSerializer- a custom serializer
 
 
- 
- 
Method Details- 
disposeDeregister itself.- Specified by:
- disposein interface- IRemoteCacheListener<K,- V> 
- Throws:
- IOException
 
- 
toStringFor easier debugging.- Overrides:
- toStringin class- AbstractRemoteCacheListener<K,- V> 
- Returns:
- Basic info on this listener.
 
 
-