ehcache

net.sf.ehcache.distribution
Interface CacheReplicator

All Superinterfaces:
CacheEventListener, java.lang.Cloneable
All Known Implementing Classes:
JGroupsCacheReplicator, RMIAsynchronousCacheReplicator, RMISynchronousCacheReplicator

public interface CacheReplicator
extends CacheEventListener

Replicates cache entries to peers of the CacheManager

Version:
$Id: CacheReplicator.java 519 2007-07-27 07:11:45Z gregluck $
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