public abstract class ClusterListener extends Object implements ChannelListener
Modifier and Type | Field and Description |
---|---|
protected CatalinaCluster |
cluster
The string manager for this package.
|
Constructor and Description |
---|
ClusterListener() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(ClusterMessage msg)
Accept only SessionIDMessages
|
boolean |
accept(Serializable msg,
Member member)
Invoked by the channel to determine if the listener will process this message or not.
|
CatalinaCluster |
getCluster() |
abstract void |
messageReceived(ClusterMessage msg)
Callback from the cluster, when a message is received, The cluster will
broadcast it invoking the messageReceived on the receiver.
|
void |
messageReceived(Serializable msg,
Member member)
Receive a message from the channel
|
void |
setCluster(CatalinaCluster cluster) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
protected CatalinaCluster cluster
public CatalinaCluster getCluster()
public void setCluster(CatalinaCluster cluster)
public final void messageReceived(Serializable msg, Member member)
ChannelListener
messageReceived
in interface ChannelListener
msg
- Serializablemember
- - the source of the messagepublic final boolean accept(Serializable msg, Member member)
ChannelListener
accept
in interface ChannelListener
msg
- Serializablemember
- Memberpublic abstract void messageReceived(ClusterMessage msg)
msg
- ClusterMessage - the message received from the clusterpublic abstract boolean accept(ClusterMessage msg)
msg
- ClusterMessageCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.