public class RemoteCacheListener<K,V> extends AbstractRemoteCacheListener<K,V> implements IRemoteCacheConstants, Serializable, IRemoteCacheListener<K,V>
One listener is used per remote cache server. The same listener is used for all the regions that talk to a particular server.
puts, removes
CACHE_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 and Description |
---|
RemoteCacheListener(IRemoteCacheAttributes irca,
ICompositeCacheManager cacheMgr)
Only need one since it does work for all regions, just reference by multiple region names.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deregister itself.
|
String |
toString()
For easier debugging.
|
getCacheManager, getListenerId, getLocalHostAddress, getRemoteType, handleDispose, handlePut, handleRemove, handleRemoveAll, setListenerId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getListenerId, getLocalHostAddress, getRemoteType, setListenerId
handleDispose, handlePut, handleRemove, handleRemoveAll
public RemoteCacheListener(IRemoteCacheAttributes irca, ICompositeCacheManager cacheMgr)
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.
irca
- cacheMgr
- public void dispose() throws IOException
dispose
in interface IRemoteCacheListener<K,V>
IOException
public String toString()
toString
in class AbstractRemoteCacheListener<K,V>
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.