Package org.apache.catalina.ha.session
Class ClusterSessionListener
- java.lang.Object
- 
- org.apache.catalina.ha.ClusterListener
- 
- org.apache.catalina.ha.session.ClusterSessionListener
 
 
- 
- All Implemented Interfaces:
- ChannelListener
 
 public class ClusterSessionListener extends ClusterListener Receive replicated SessionMessage form other cluster node.- Author:
- Peter Rossbach
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.catalina.ha.ClusterListenercluster
 
- 
 - 
Constructor SummaryConstructors Constructor Description ClusterSessionListener()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(ClusterMessage msg)Accept only SessionMessagevoidmessageReceived(ClusterMessage myobj)Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.- 
Methods inherited from class org.apache.catalina.ha.ClusterListeneraccept, getCluster, messageReceived, setCluster
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.catalina.tribes.ChannelListenerequals, hashCode
 
- 
 
- 
- 
- 
Method Detail- 
messageReceivedpublic void messageReceived(ClusterMessage myobj) Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.- Specified by:
- messageReceivedin class- ClusterListener
- Parameters:
- myobj- ClusterMessage - the message received from the cluster
 
 - 
acceptpublic boolean accept(ClusterMessage msg) Accept only SessionMessage- Specified by:
- acceptin class- ClusterListener
- Parameters:
- msg- ClusterMessage
- Returns:
- boolean - returns true to indicate that messageReceived should be invoked. If false is returned, the messageReceived method will not be invoked.
 
 
- 
 
-