ehcache

net.sf.ehcache.distribution
Interface CacheReplicator

All Superinterfaces:
CacheEventListener, Cloneable
All Known Implementing Classes:
RMIAsynchronousCacheReplicator, RMISynchronousCacheReplicator, TerracottaCacheEventReplication

public interface CacheReplicator
extends CacheEventListener

Replicates cache entries to peers of the CacheManager

Version:
$Id: CacheReplicator.java 2154 2010-04-06 02:45:52Z cdennis $
Author:
Greg Luck

Method Summary
 boolean alive()
          Checks that the replicator is is STATUS_ALIVE.
 boolean isReplicateUpdatesViaCopy()
          Returns whether update is through copy or invalidate
 boolean notAlive()
          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 is STATUS_ALIVE.

Returns:
true if the replicator is is STATUS_ALIVE, else false.

ehcache

true