com.atlassian.cache.ehcache
Class RMISynchronousCacheReplicator

java.lang.Object
  extended by net.sf.ehcache.distribution.RMISynchronousCacheReplicator
      extended by com.atlassian.cache.ehcache.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
RMISynchronousCacheReplicator(boolean replicatePuts, boolean replicatePutsViaCopy, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals)
          Constructor
 
Method Summary
 void notifyElementPut(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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMISynchronousCacheReplicator

public RMISynchronousCacheReplicator(boolean replicatePuts,
                                     boolean replicatePutsViaCopy,
                                     boolean replicateUpdates,
                                     boolean replicateUpdatesViaCopy,
                                     boolean replicateRemovals)
Constructor

Parameters:
replicatePuts - whether to replicate puts
replicatePutsViaCopy - whether to replicate puts by copying the serialized value
replicateUpdates - whether to replicate updates
replicateUpdatesViaCopy - whether to replicate updates by copying the serialized value
replicateRemovals - whether to replicate removals
Method Detail

notifyElementPut

public void notifyElementPut(net.sf.ehcache.Ehcache cache,
                             net.sf.ehcache.Element element)
                      throws net.sf.ehcache.CacheException
Specified by:
notifyElementPut in interface net.sf.ehcache.event.CacheEventListener
Overrides:
notifyElementPut in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Throws:
net.sf.ehcache.CacheException


Copyright © 2014 Atlassian. All Rights Reserved.