net.sf.ehcache.distribution
public class RMISynchronousCacheReplicator extends Object implements CacheReplicator
Version: $Id: RMISynchronousCacheReplicator.java 52 2006-04-24 14:50:03Z gregluck $
Field Summary | |
---|---|
protected boolean | replicatePuts
Whether to replicate puts. |
protected boolean | replicateRemovals
Whether to replicate removes |
protected boolean | replicateUpdates
Whether to replicate updates. |
protected boolean | replicateUpdatesViaCopy
Whether an update (a put) should be by copy or by invalidation, (a remove).
|
protected Status | status
The status of the replicator. |
Constructor Summary | |
---|---|
protected | RMISynchronousCacheReplicator(boolean replicatePuts, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals)
Constructor for internal and subclass use
|
Method Summary | |
---|---|
boolean | alive()
Checks that the replicator is is STATUS_ALIVE . |
void | dispose()
Give the replicator a chance to cleanup and free resources when no longer needed |
boolean | isReplicateUpdatesViaCopy() |
static List | listRemoteCachePeers(Cache cache)
Package protected List of cache peers |
boolean | notAlive()
Asserts that the replicator is active.
|
void | notifyElementExpired(Cache cache, Element element)
{@inheritDoc }
This implementation does not propagate expiries. |
void | notifyElementPut(Cache cache, Element element)
Called immediately after an element has been put into the cache. |
void | notifyElementRemoved(Cache cache, Element element)
Called immediately after an element has been removed. |
void | notifyElementUpdated(Cache cache, Element element)
Called immediately after an element has been put into the cache and the element already
existed in the cache. |
#replicateUpdates
is true.STATUS_ALIVE
Parameters: replicatePuts replicateUpdates replicateUpdatesViaCopy replicateRemovals
STATUS_ALIVE
.Returns: whether update is through copy or invalidate
Parameters: cache
Returns: true if the status is not STATUS_ALIVE
Parameters: cache the cache emitting the notification element the element which was just put into the cache.
Parameters: cache the cache emitting the notification element just deleted
Parameters: cache the cache emitting the notification element the element which was just put into the cache.