Package | Description |
---|---|
org.cometd.bayeux.client |
Modifier and Type | Field | Description |
---|---|---|
static ClientSession.MessageListener |
ClientSession.MessageListener.NOOP |
Modifier and Type | Method | Description |
---|---|---|
void |
ClientSession.disconnect(ClientSession.MessageListener callback) |
Disconnects this session, ending the link between the client and the server peers.
|
void |
ClientSession.handshake(Map<String,Object> template,
ClientSession.MessageListener callback) |
Initiates the bayeux protocol handshake with the server(s).
|
void |
ClientSessionChannel.publish(Object data,
ClientSession.MessageListener callback) |
Publishes the given
data onto this channel, notifying the given
callback of the publish result, whether successful or unsuccessful. |
void |
ClientSessionChannel.publish(Message.Mutable message,
ClientSession.MessageListener callback) |
Publishes the given
message onto this channel, notifying the
given callback of the publish result. |
void |
ClientSession.remoteCall(String target,
Object data,
ClientSession.MessageListener callback) |
Performs a remote call to the server, to the specified
target ,
and with the given data as payload. |
void |
ClientSessionChannel.subscribe(ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
Subscribes the given
listener to receive messages sent to this channel. |
void |
ClientSessionChannel.unsubscribe(ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
Unsubscribes the given
listener from receiving messages sent to this channel. |
Copyright © 2008–2017 The CometD Project. All rights reserved.