Class RMISynchronousCacheReplicator
java.lang.Object
net.sf.ehcache.distribution.RMISynchronousCacheReplicator
com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator
- All Implemented Interfaces:
Cloneable,net.sf.ehcache.distribution.CacheReplicator,net.sf.ehcache.event.CacheEventListener
public class RMISynchronousCacheReplicator
extends net.sf.ehcache.distribution.RMISynchronousCacheReplicator
An
RMISynchronousCacheReplicator that works around https://jira.terracotta.org/jira/browse/EHC-683.- Since:
- 2.0
-
Field Summary
Fields inherited from class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
replicatePuts, replicatePutsViaCopy, replicateRemovals, replicateUpdates, replicateUpdatesViaCopy, status -
Constructor Summary
ConstructorsConstructorDescriptionRMISynchronousCacheReplicator(boolean replicatePuts, boolean replicatePutsViaCopy, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) Methods inherited from class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
alive, clone, dispose, isReplicateUpdatesViaCopy, notAlive, notifyElementEvicted, notifyElementExpired, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, replicatePutNotification, replicateRemovalNotification, replicateRemoveAllNotification
-
Constructor Details
-
RMISynchronousCacheReplicator
public RMISynchronousCacheReplicator(boolean replicatePuts, boolean replicatePutsViaCopy, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals) Constructor- Parameters:
replicatePuts- whether to replicate putsreplicatePutsViaCopy- whether to replicate puts by copying the serialized valuereplicateUpdates- whether to replicate updatesreplicateUpdatesViaCopy- whether to replicate updates by copying the serialized valuereplicateRemovals- whether to replicate removals
-
-
Method Details
-
notifyElementPut
public void notifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException - Specified by:
notifyElementPutin interfacenet.sf.ehcache.event.CacheEventListener- Overrides:
notifyElementPutin classnet.sf.ehcache.distribution.RMISynchronousCacheReplicator- Throws:
net.sf.ehcache.CacheException
-