Package net.sf.ehcache.distribution
Interface CacheReplicator
-
- All Superinterfaces:
CacheEventListener,java.lang.Cloneable
- All Known Implementing Classes:
RMIAsynchronousCacheReplicator,RMISynchronousCacheReplicator
public interface CacheReplicator extends CacheEventListener
Replicates cache entries to peers of the CacheManager- Version:
- $Id$
- Author:
- Greg Luck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanalive()Checks that the replicator is isSTATUS_ALIVE.booleanisReplicateUpdatesViaCopy()Returns whether update is through copy or invalidatebooleannotAlive()Returns whether the replicator is not active.-
Methods inherited from interface net.sf.ehcache.event.CacheEventListener
clone, dispose, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll
-
-
-
-
Method Detail
-
isReplicateUpdatesViaCopy
boolean isReplicateUpdatesViaCopy()
Returns whether update is through copy or invalidate- Returns:
- true if update is via copy, else false if invalidate
-
notAlive
boolean notAlive()
Returns whether the replicator is not active.- Returns:
- true if the status is not STATUS_ALIVE
-
alive
boolean alive()
Checks that the replicator is isSTATUS_ALIVE.- Returns:
- true if the replicator is is
STATUS_ALIVE, else false.
-
-