public class JGroupsCacheReplicator
extends java.lang.Object
implements com.fr.third.net.sf.ehcache.distribution.CacheReplicator
限定符和类型 | 字段和说明 |
---|---|
static long |
DEFAULT_ASYNC_INTERVAL
The default interval for async cache replication
|
构造器和说明 |
---|
JGroupsCacheReplicator(boolean replicatePuts,
boolean replicateUpdates,
boolean replicateUpdatesViaCopy,
boolean replicateRemovals)
Constructor called by factory, does synchronous replication
|
JGroupsCacheReplicator(boolean replicatePuts,
boolean replicateUpdates,
boolean replicateUpdatesViaCopy,
boolean replicateRemovals,
long asynchronousReplicationInterval)
Constructor called by factory, does asynchronous replication
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
alive() |
java.lang.Object |
clone() |
void |
dispose() |
boolean |
isReplicateUpdatesViaCopy() |
boolean |
notAlive() |
void |
notifyElementEvicted(com.fr.third.net.sf.ehcache.Ehcache cache,
com.fr.third.net.sf.ehcache.Element element) |
void |
notifyElementExpired(com.fr.third.net.sf.ehcache.Ehcache cache,
com.fr.third.net.sf.ehcache.Element element) |
void |
notifyElementPut(com.fr.third.net.sf.ehcache.Ehcache cache,
com.fr.third.net.sf.ehcache.Element element) |
void |
notifyElementRemoved(com.fr.third.net.sf.ehcache.Ehcache cache,
com.fr.third.net.sf.ehcache.Element element) |
void |
notifyElementUpdated(com.fr.third.net.sf.ehcache.Ehcache cache,
com.fr.third.net.sf.ehcache.Element element) |
void |
notifyRemoveAll(com.fr.third.net.sf.ehcache.Ehcache cache) |
protected void |
sendNotification(com.fr.third.net.sf.ehcache.Ehcache cache,
JGroupEventMessage eventMessage)
Used to send notification to the peer.
|
public static final long DEFAULT_ASYNC_INTERVAL
public JGroupsCacheReplicator(boolean replicatePuts, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals)
public JGroupsCacheReplicator(boolean replicatePuts, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals, long asynchronousReplicationInterval)
public boolean alive()
alive
在接口中 com.fr.third.net.sf.ehcache.distribution.CacheReplicator
public boolean isReplicateUpdatesViaCopy()
isReplicateUpdatesViaCopy
在接口中 com.fr.third.net.sf.ehcache.distribution.CacheReplicator
public boolean notAlive()
notAlive
在接口中 com.fr.third.net.sf.ehcache.distribution.CacheReplicator
public void dispose()
dispose
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
public void notifyElementExpired(com.fr.third.net.sf.ehcache.Ehcache cache, com.fr.third.net.sf.ehcache.Element element)
notifyElementExpired
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
public void notifyElementPut(com.fr.third.net.sf.ehcache.Ehcache cache, com.fr.third.net.sf.ehcache.Element element) throws com.fr.third.net.sf.ehcache.CacheException
notifyElementPut
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
com.fr.third.net.sf.ehcache.CacheException
public void notifyElementRemoved(com.fr.third.net.sf.ehcache.Ehcache cache, com.fr.third.net.sf.ehcache.Element element) throws com.fr.third.net.sf.ehcache.CacheException
notifyElementRemoved
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
com.fr.third.net.sf.ehcache.CacheException
public void notifyElementUpdated(com.fr.third.net.sf.ehcache.Ehcache cache, com.fr.third.net.sf.ehcache.Element element) throws com.fr.third.net.sf.ehcache.CacheException
notifyElementUpdated
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
com.fr.third.net.sf.ehcache.CacheException
public void notifyElementEvicted(com.fr.third.net.sf.ehcache.Ehcache cache, com.fr.third.net.sf.ehcache.Element element)
notifyElementEvicted
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
public void notifyRemoveAll(com.fr.third.net.sf.ehcache.Ehcache cache)
notifyRemoveAll
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
protected void sendNotification(com.fr.third.net.sf.ehcache.Ehcache cache, JGroupEventMessage eventMessage)
cache
- eventMessage
- public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 com.fr.third.net.sf.ehcache.event.CacheEventListener
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException