|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.ehcache.distribution.jgroups.JGroupsCacheReplicator
public class JGroupsCacheReplicator
| Field Summary | |
|---|---|
static long |
DEFAULT_ASYNC_INTERVAL
The default interval for async cache replication |
| Constructor Summary | |
|---|---|
JGroupsCacheReplicator(boolean replicatePuts,
boolean replicateUpdates,
boolean replicateUpdatesViaCopy,
boolean replicateRemovals)
Constructor called by factory, does synchronous replication |
|
JGroupsCacheReplicator(boolean replicatePuts,
boolean replicateUpdates,
boolean replicateUpdatesViaCopy,
boolean replicateRemovals,
long asynchronousReplicationInterval)
Constructor called by factory, does asynchronous replication |
|
| Method Summary | |
|---|---|
boolean |
alive()
|
Object |
clone()
|
void |
dispose()
|
boolean |
isReplicateUpdatesViaCopy()
|
boolean |
notAlive()
|
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyRemoveAll(net.sf.ehcache.Ehcache cache)
|
protected void |
sendNotification(net.sf.ehcache.Ehcache cache,
JGroupEventMessage eventMessage)
Used to send notification to the peer. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_ASYNC_INTERVAL
| Constructor Detail |
|---|
public JGroupsCacheReplicator(boolean replicatePuts,
boolean replicateUpdates,
boolean replicateUpdatesViaCopy,
boolean replicateRemovals)
public JGroupsCacheReplicator(boolean replicatePuts,
boolean replicateUpdates,
boolean replicateUpdatesViaCopy,
boolean replicateRemovals,
long asynchronousReplicationInterval)
| Method Detail |
|---|
public boolean alive()
alive in interface net.sf.ehcache.distribution.CacheReplicatorpublic boolean isReplicateUpdatesViaCopy()
isReplicateUpdatesViaCopy in interface net.sf.ehcache.distribution.CacheReplicatorpublic boolean notAlive()
notAlive in interface net.sf.ehcache.distribution.CacheReplicatorpublic void dispose()
dispose in interface net.sf.ehcache.event.CacheEventListener
public void notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
notifyElementExpired in interface net.sf.ehcache.event.CacheEventListener
public void notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementPut in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheException
public void notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementRemoved in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheException
public void notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementUpdated in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheException
public void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
notifyElementEvicted in interface net.sf.ehcache.event.CacheEventListenerpublic void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
notifyRemoveAll in interface net.sf.ehcache.event.CacheEventListener
protected void sendNotification(net.sf.ehcache.Ehcache cache,
JGroupEventMessage eventMessage)
cache - eventMessage -
public Object clone()
throws CloneNotSupportedException
clone in interface net.sf.ehcache.event.CacheEventListenerclone in class ObjectCloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||