public abstract class ClusterListener extends java.lang.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(java.io.Serializable msg,
Member member)
Invoked by the channel to determine if the listener will process this message or not.
|
boolean |
equals(java.lang.Object listener) |
CatalinaCluster |
getCluster() |
int |
hashCode() |
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(java.io.Serializable msg,
Member member)
Receive a message from the channel
|
void |
setCluster(CatalinaCluster cluster) |
protected CatalinaCluster cluster
public CatalinaCluster getCluster()
public void setCluster(CatalinaCluster cluster)
public boolean equals(java.lang.Object listener)
equals
in interface ChannelListener
equals
in class java.lang.Object
listener
- ObjectObject.equals(Object)
public int hashCode()
hashCode
in interface ChannelListener
hashCode
in class java.lang.Object
Object.hashCode()
public final void messageReceived(java.io.Serializable msg, Member member)
ChannelListener
messageReceived
in interface ChannelListener
msg
- Serializablemember
- - the source of the messagepublic final boolean accept(java.io.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-2015 Apache Software Foundation. All Rights Reserved.