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

    Constructors
    Constructor
    Description
    RMISynchronousCacheReplicator(boolean replicatePuts, boolean replicatePutsViaCopy, boolean replicateUpdates, boolean replicateUpdatesViaCopy, boolean replicateRemovals)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • 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 Details

    • 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