org.terracotta.modules.ehcache.event
Class ClusteredEventReplicator

java.lang.Object
  extended by org.terracotta.modules.ehcache.event.ClusteredEventReplicator
All Implemented Interfaces:
Cloneable, CacheEventListener

public class ClusteredEventReplicator
extends Object
implements CacheEventListener


Constructor Summary
ClusteredEventReplicator(Ehcache cache, String fullyQualifiedEhcacheName, org.terracotta.toolkit.events.ToolkitNotifier<CacheEventNotificationMsg> toolkitNotifier, ClusteredEventReplicatorFactory factory)
           
 
Method Summary
 ClusteredEventReplicator clone()
           
 void dispose()
           
 void notifyElementEvicted(Ehcache cache, Element element)
           
 void notifyElementExpired(Ehcache cache, Element element)
           
 void notifyElementPut(Ehcache cache, Element element)
           
 void notifyElementRemoved(Ehcache cache, Element element)
           
 void notifyElementUpdated(Ehcache cache, Element element)
           
 void notifyRemoveAll(Ehcache cache)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusteredEventReplicator

public ClusteredEventReplicator(Ehcache cache,
                                String fullyQualifiedEhcacheName,
                                org.terracotta.toolkit.events.ToolkitNotifier<CacheEventNotificationMsg> toolkitNotifier,
                                ClusteredEventReplicatorFactory factory)
Method Detail

notifyElementRemoved

public void notifyElementRemoved(Ehcache cache,
                                 Element element)
                          throws CacheException
Specified by:
notifyElementRemoved in interface CacheEventListener
Throws:
CacheException

notifyElementPut

public void notifyElementPut(Ehcache cache,
                             Element element)
                      throws CacheException
Specified by:
notifyElementPut in interface CacheEventListener
Throws:
CacheException

notifyElementUpdated

public void notifyElementUpdated(Ehcache cache,
                                 Element element)
                          throws CacheException
Specified by:
notifyElementUpdated in interface CacheEventListener
Throws:
CacheException

notifyElementExpired

public void notifyElementExpired(Ehcache cache,
                                 Element element)
Specified by:
notifyElementExpired in interface CacheEventListener

notifyElementEvicted

public void notifyElementEvicted(Ehcache cache,
                                 Element element)
Specified by:
notifyElementEvicted in interface CacheEventListener

notifyRemoveAll

public void notifyRemoveAll(Ehcache cache)
Specified by:
notifyRemoveAll in interface CacheEventListener

dispose

public void dispose()
Specified by:
dispose in interface CacheEventListener

clone

public ClusteredEventReplicator clone()
                               throws CloneNotSupportedException
Specified by:
clone in interface CacheEventListener
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.