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 a certain type of messages.voidmessageReceived(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
- 
Constructor Details- 
ClusterSessionListenerpublic ClusterSessionListener()
 
- 
- 
Method Details- 
messageReceivedDescription copied from class:ClusterListenerCallback 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- the message received from the cluster
 
- 
acceptAccept only a certain type of messages.This listener accepts only SessionMessage. - Specified by:
- acceptin class- ClusterListener
- Parameters:
- msg- the message
- Returns:
- trueto indicate that messageReceived should be invoked. If- falseis returned, the messageReceived method will not be invoked.
 
 
-