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.
|
boolean |
equals(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(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(Object listener)
equals
in interface ChannelListener
equals
in class Object
listener
- ObjectObject.equals(Object)
public int hashCode()
hashCode
in interface ChannelListener
hashCode
in class Object
Object.hashCode()
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-2014 Apache Software Foundation. All Rights Reserved.