|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageListener
Message Listener Interface.
Objects implementing this interface may listen for message deliverly events
by calling the Client.addListener(ClientListener) The MessageListener.Synchronous
or MessageListener.Asynchronous nested interfaces may be used as a mixin to specify the style
of delivery required. If neither subtype is specified, then the Bayeux
implementation may use either method.
| Nested Class Summary | |
|---|---|
static interface |
MessageListener.Asynchronous
Subtype of MesssageListener that requires asynchronous message delivery. |
static interface |
MessageListener.Synchronous
Subtype of MessageListener that requires synchronous message delivery. |
| Method Summary | |
|---|---|
void |
deliver(Client fromClient,
Client toClient,
Message msg)
Called when a message is delivered to the client |
| Method Detail |
|---|
void deliver(Client fromClient,
Client toClient,
Message msg)
fromClient - the client that sent the messagetoClient - the client that received the messagemsg - the message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||