ehcache

net.sf.ehcache.distribution
Interface CacheReplicator

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

public interface CacheReplicator
extends CacheEventListener

Replicates cache entries to peers of the CacheManager

Version:
$Id: CacheReplicator.java 5594 2012-05-07 16:04:31Z 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

Copyright 2001-2015, Terracotta, Inc.