|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelListener
An event handler for handling messages on a Channel
.
A ChannelListener must support at least one of:
Channel.send(java.lang.Object)
Channel.invoke(java.lang.Object)
, and returns a response.
Channel
,
Connection
Method Summary | |
---|---|
void |
closed()
Invoked when the channel that this listener is registered with is closed |
java.lang.Object |
invoke(java.lang.Object request)
Process an invocation request, and return a response |
void |
receive(java.lang.Object message)
Process a message sent by Channel.send(java.lang.Object) |
Method Detail |
---|
void receive(java.lang.Object message)
Channel.send(java.lang.Object)
message
- the messagejava.lang.Object invoke(java.lang.Object request) throws java.lang.Exception
request
- the request
java.lang.Exception
- if the handler cannot process the request. This
is propagated back to the client.void closed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |