org.terracotta.modules.ehcache.event
Class ClusterListenerAdapter

java.lang.Object
  extended by org.terracotta.modules.ehcache.event.ClusterListenerAdapter
All Implemented Interfaces:
org.terracotta.toolkit.cluster.ClusterListener, org.terracotta.toolkit.internal.cluster.OutOfBandClusterListener

public class ClusterListenerAdapter
extends Object
implements org.terracotta.toolkit.internal.cluster.OutOfBandClusterListener


Constructor Summary
ClusterListenerAdapter(ClusterTopologyListener topologyListener, org.terracotta.toolkit.cluster.ClusterInfo cluster)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 void onClusterEvent(org.terracotta.toolkit.cluster.ClusterEvent event)
           
 boolean useOutOfBandNotification(org.terracotta.toolkit.cluster.ClusterEvent event)
          use out-of-band for listeners in ehcache terracotta package for NODE_LEFT events (used for rejoin) and OPS_DISABLED event
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterListenerAdapter

public ClusterListenerAdapter(ClusterTopologyListener topologyListener,
                              org.terracotta.toolkit.cluster.ClusterInfo cluster)
Method Detail

onClusterEvent

public void onClusterEvent(org.terracotta.toolkit.cluster.ClusterEvent event)
Specified by:
onClusterEvent in interface org.terracotta.toolkit.cluster.ClusterListener

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

useOutOfBandNotification

public boolean useOutOfBandNotification(org.terracotta.toolkit.cluster.ClusterEvent event)
use out-of-band for listeners in ehcache terracotta package for NODE_LEFT events (used for rejoin) and OPS_DISABLED event

Specified by:
useOutOfBandNotification in interface org.terracotta.toolkit.internal.cluster.OutOfBandClusterListener


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