Modifier and Type | Method and Description |
---|---|
default void |
ClientSession.Extension.incoming(ClientSession session,
Message.Mutable message,
Promise<Boolean> promise)
Callback method invoked every time a message is incoming.
|
default void |
ClientSession.Extension.outgoing(ClientSession session,
Message.Mutable message,
Promise<Boolean> promise)
Callback method invoked every time a message is outgoing.
|
void |
ClientSessionChannel.publish(Message.Mutable message,
ClientSession.MessageListener callback)
Publishes the given
message onto this channel, notifying the
given callback of the publish result. |
default boolean |
ClientSession.Extension.rcv(ClientSession session,
Message.Mutable message)
Callback method invoked every time a normal message is received.
|
default boolean |
ClientSession.Extension.rcvMeta(ClientSession session,
Message.Mutable message)
Callback method invoked every time a meta message is received.
|
default boolean |
ClientSession.Extension.send(ClientSession session,
Message.Mutable message)
Callback method invoked every time a normal message is being sent.
|
default boolean |
ClientSession.Extension.sendMeta(ClientSession session,
Message.Mutable message)
Callback method invoked every time a meta message is being sent.
|
boolean |
ClientSessionChannel.subscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback)
Subscribes the given
listener to receive messages sent to this channel. |
boolean |
ClientSessionChannel.unsubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback)
Unsubscribes the given
listener from receiving messages sent to this channel. |
Modifier and Type | Interface and Description |
---|---|
static interface |
ServerMessage.Mutable
The mutable version of a
ServerMessage |
Modifier and Type | Method and Description |
---|---|
protected void |
BayeuxClient.enqueueSend(Message.Mutable message) |
protected void |
BayeuxClient.BayeuxClientChannel.nonFirstSubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
protected void |
BayeuxClient.BayeuxClientChannel.nonLastUnSubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
protected void |
BayeuxClient.processConnect(Message.Mutable connect) |
protected void |
BayeuxClient.processDisconnect(Message.Mutable disconnect) |
protected void |
BayeuxClient.processHandshake(Message.Mutable handshake) |
protected void |
BayeuxClient.processMessage(Message.Mutable message) |
protected void |
BayeuxClient.send(Message.Mutable message) |
Modifier and Type | Method and Description |
---|---|
void |
BayeuxClient.onMessages(List<Message.Mutable> messages)
Deprecated.
|
protected void |
BayeuxClient.sendMessages(List<Message.Mutable> messages,
Promise<Boolean> promise) |
Modifier and Type | Method and Description |
---|---|
boolean |
BinaryExtension.rcv(ClientSession session,
Message.Mutable message) |
boolean |
TimesyncClientExtension.rcvMeta(ClientSession session,
Message.Mutable message) |
boolean |
AckExtension.rcvMeta(ClientSession session,
Message.Mutable message) |
boolean |
BinaryExtension.send(ClientSession session,
Message.Mutable message) |
boolean |
TimestampClientExtension.send(ClientSession session,
Message.Mutable message) |
boolean |
TimesyncClientExtension.sendMeta(ClientSession session,
Message.Mutable message) |
boolean |
AckExtension.sendMeta(ClientSession session,
Message.Mutable message) |
boolean |
TimestampClientExtension.sendMeta(ClientSession session,
Message.Mutable message) |
Modifier and Type | Method and Description |
---|---|
protected long |
AbstractHttpClientTransport.calculateMaxNetworkDelay(List<Message.Mutable> messages) |
protected String |
AbstractHttpClientTransport.newRequestURI(List<Message.Mutable> messages) |
protected void |
AbstractHttpClientTransport.processResponseContent(TransportListener listener,
List<Message.Mutable> requestMessages,
String content) |
protected void |
AbstractHttpClientTransport.processResponseMessages(TransportListener listener,
List<Message.Mutable> messages) |
protected void |
AbstractHttpClientTransport.processWrongResponseCode(TransportListener listener,
List<Message.Mutable> messages,
int code) |
Modifier and Type | Method and Description |
---|---|
void |
JettyHttpClientTransport.send(TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Method and Description |
---|---|
void |
OkHttpClientTransport.send(TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Method and Description |
---|---|
protected List<Message.Mutable> |
ClientTransport.parseMessages(String content) |
Modifier and Type | Method and Description |
---|---|
protected String |
ClientTransport.generateJSON(List<Message.Mutable> messages) |
default void |
TransportListener.onMessages(List<Message.Mutable> messages)
Callback method invoked when a batch of message is received.
|
abstract void |
ClientTransport.send(TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractWebSocketTransport.Delegate |
AbstractWebSocketTransport.connect(String uri,
TransportListener listener,
List<Message.Mutable> messages) |
protected void |
AbstractWebSocketTransport.Delegate.onMessages(List<Message.Mutable> messages) |
protected void |
AbstractWebSocketTransport.Delegate.registerMessages(TransportListener listener,
List<Message.Mutable> messages) |
void |
AbstractWebSocketTransport.send(TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Method and Description |
---|---|
protected AbstractWebSocketTransport.Delegate |
WebSocketTransport.connect(String uri,
TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Method and Description |
---|---|
protected AbstractWebSocketTransport.Delegate |
JettyWebSocketTransport.connect(String uri,
TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Method and Description |
---|---|
protected AbstractWebSocketTransport.Delegate |
OkHttpWebSocketTransport.connect(String uri,
TransportListener listener,
List<Message.Mutable> messages) |
Modifier and Type | Class and Description |
---|---|
class |
JacksonJSONContext<M extends Message.Mutable,I extends M> |
class |
JettyJSONContext<M extends Message.Mutable> |
interface |
JSONContext<T extends Message.Mutable>
Abstraction for JSON parsing and generation.
|
Modifier and Type | Class and Description |
---|---|
class |
HashMapMessage |
Modifier and Type | Method and Description |
---|---|
protected Message.Mutable |
AbstractClientSession.newMessage() |
protected Message.Mutable |
JettyJSONContextClient.newRoot() |
protected Message.Mutable[] |
JettyJSONContextClient.newRootArray(int size) |
protected abstract M[] |
JettyJSONContext.newRootArray(int size) |
T[] |
JSONContext.parse(InputStream stream)
Deprecated.
use
JSONContext.parse(Reader) instead |
M[] |
JacksonJSONContext.parse(InputStream stream) |
M[] |
JettyJSONContext.parse(InputStream stream) |
T[] |
JSONContext.parse(Reader reader)
Parses an array of messages from the given reader.
|
M[] |
JacksonJSONContext.parse(Reader reader) |
M[] |
JettyJSONContext.parse(Reader reader) |
T[] |
JSONContext.parse(String json)
Parses an array of messages from the given string.
|
M[] |
JacksonJSONContext.parse(String json) |
M[] |
JettyJSONContext.parse(String json) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractClientSession.extendIncoming(Message.Mutable message,
Promise<Boolean> promise) |
protected void |
AbstractClientSession.extendOutgoing(Message.Mutable message,
Promise<Boolean> promise) |
protected void |
AbstractClientSession.AbstractSessionChannel.nonFirstSubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
protected void |
AbstractClientSession.AbstractSessionChannel.nonLastUnSubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
protected void |
AbstractClientSession.notifyCallback(ClientSession.MessageListener callback,
Message.Mutable message) |
protected void |
AbstractClientSession.notifyListeners(Message.Mutable message) |
void |
AbstractClientSession.AbstractSessionChannel.publish(Message.Mutable message,
ClientSession.MessageListener callback) |
void |
AbstractClientSession.receive(Message.Mutable message,
Promise<Void> promise)
Receives a message (from the server) and process it.
|
protected abstract void |
AbstractClientSession.send(Message.Mutable message) |
protected void |
AbstractClientSession.AbstractSessionChannel.sendSubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
protected void |
AbstractClientSession.AbstractSessionChannel.sendUnSubscribe(Message.Mutable message,
ClientSession.MessageListener callback)
Deprecated.
|
protected void |
AbstractClientSession.AbstractSessionChannel.sendUnSubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
boolean |
AbstractClientSession.AbstractSessionChannel.subscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
boolean |
AbstractClientSession.AbstractSessionChannel.unsubscribe(Message.Mutable message,
ClientSessionChannel.MessageListener listener,
ClientSession.MessageListener callback) |
Constructor and Description |
---|
BufferingJSONAsyncParser(JSONContext<? extends Message.Mutable> jsonContext) |
Modifier and Type | Class and Description |
---|---|
class |
ServerMessageImpl |
Modifier and Type | Method and Description |
---|---|
void |
LocalSessionImpl.receive(Message.Mutable message,
Promise<Void> promise) |
protected void |
LocalSessionImpl.send(Message.Mutable message) |
Copyright © 2008–2024 The CometD Project. All rights reserved.