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
Receive replicated SessionMessage form other cluster node.
- Author:
- Peter Rossbach
- 
Field SummaryFields inherited from class org.apache.catalina.ha.ClusterListenercluster
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaccept(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, setClusterMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.catalina.tribes.ChannelListenerequals, hashCode
- 
Constructor Details- 
ClusterSessionListenerpublic ClusterSessionListener()
 
- 
- 
Method Details- 
messageReceivedCallback 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
 
- 
acceptAccept 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.
 
 
-