|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelListener
Title: ChannelListener
Description: An interface to listens to incoming messages from a channel
When a message is received, the Channel will invoke the channel listener in a conditional sequence.if ( listener.accept(msg,sender) ) listener.messageReceived(msg,sender);
accept(Serializable, Member)
if it doesn't intend to process the message. The channel can this way track whether a message
was processed by an above application or if it was just received and forgot about, a featuer required
to support message-response(RPC) calls
Method Summary | |
---|---|
boolean |
accept(java.io.Serializable msg,
Member sender)
Invoked by the channel to determine if the listener will process this message or not. |
boolean |
equals(java.lang.Object listener)
|
int |
hashCode()
|
void |
messageReceived(java.io.Serializable msg,
Member sender)
Receive a message from the channel |
Method Detail |
---|
void messageReceived(java.io.Serializable msg, Member sender)
msg
- Serializablesender
- - the source of the messageboolean accept(java.io.Serializable msg, Member sender)
msg
- Serializablesender
- Member
boolean equals(java.lang.Object listener)
equals
in class java.lang.Object
listener
- Object
Object.equals(Object)
int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |