Modifier and Type | Interface and Description |
---|---|
static interface |
ServerMessage.Mutable
The mutable version of a
ServerMessage |
Modifier and Type | Method and Description |
---|---|
default ServerMessage |
ServerSession.Extension.send(ServerSession sender,
ServerSession session,
ServerMessage message)
Blocking version of
ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
Modifier and Type | Method and Description |
---|---|
void |
ServerSession.AddedListener.added(ServerSession session,
ServerMessage message)
Callback method invoked when the session is added to a
BayeuxServer . |
default void |
ServerSession.AddListener.added(ServerSession session,
ServerMessage message)
Deprecated.
|
Authorizer.Result |
Authorizer.authorize(Authorizer.Operation operation,
ChannelId channel,
ServerSession session,
ServerMessage message)
Blocking version of
Authorizer.authorize(Operation, ChannelId, ServerSession, ServerMessage, Promise) . |
default void |
Authorizer.authorize(Authorizer.Operation operation,
ChannelId channel,
ServerSession session,
ServerMessage message,
Promise<Authorizer.Result> promise)
Callback invoked to authorize the given
operation on the given channel . |
default boolean |
SecurityPolicy.canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message)
|
default void |
SecurityPolicy.canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message,
Promise<Boolean> promise)
Checks if a message should be allowed to create a new channel.
|
default boolean |
SecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message)
Blocking version of
SecurityPolicy.canHandshake(BayeuxServer, ServerSession, ServerMessage, Promise) . |
default void |
SecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message,
Promise<Boolean> promise)
Checks if a handshake message should be accepted.
|
default boolean |
SecurityPolicy.canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message)
|
default void |
SecurityPolicy.canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message,
Promise<Boolean> promise)
Checks if a client can publish a message to a channel.
|
default boolean |
SecurityPolicy.canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message)
|
default void |
SecurityPolicy.canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message,
Promise<Boolean> promise)
Checks if a subscribe message from a client is allowed to subscribe to a channel.
|
default boolean |
ServerSession.MessageListener.onMessage(ServerSession session,
ServerSession sender,
ServerMessage message)
|
default void |
ServerSession.MessageListener.onMessage(ServerSession session,
ServerSession sender,
ServerMessage message,
Promise<Boolean> promise)
Callback invoked when a message is sent.
|
default void |
ServerSession.HeartBeatListener.onResumed(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked to notify that a
/meta/connect message has been resumed. |
default void |
ServerSession.HeartBeatListener.onSuspended(ServerSession session,
ServerMessage message,
long timeout)
Callback invoked to notify that a
/meta/connect message has been suspended. |
void |
ServerSession.QueueListener.queued(ServerSession sender,
ServerMessage message)
Callback invoked when a message is queued in the session queue.
|
boolean |
ServerSession.QueueMaxedListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
default boolean |
ServerSession.MaxQueueListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Deprecated.
|
void |
ServerSession.RemovedListener.removed(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked when the session is removed.
|
default void |
ServerSession.RemoveListener.removed(ServerSession session,
ServerMessage message,
boolean timeout)
Deprecated.
|
default ServerMessage |
ServerSession.Extension.send(ServerSession sender,
ServerSession session,
ServerMessage message)
Blocking version of
ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
default void |
BayeuxServer.SessionListener.sessionAdded(ServerSession session,
ServerMessage message)
Callback invoked when a
ServerSession has been added to a BayeuxServer object. |
default void |
BayeuxServer.SessionListener.sessionRemoved(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked when a
ServerSession has been removed from a BayeuxServer object. |
default void |
BayeuxServer.SubscriptionListener.subscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when a
ServerSession subscribes to a ServerChannel . |
default void |
ServerChannel.SubscriptionListener.subscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when the given
ServerSession subscribes to the given ServerChannel . |
default void |
BayeuxServer.SubscriptionListener.unsubscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when a
ServerSession unsubscribes from a ServerChannel . |
default void |
ServerChannel.SubscriptionListener.unsubscribed(ServerSession session,
ServerChannel channel,
ServerMessage message)
Callback invoked when the given
ServerSession unsubscribes from the given ServerChannel . |
Modifier and Type | Method and Description |
---|---|
void |
ServerSession.DeQueueListener.deQueue(ServerSession session,
Queue<ServerMessage> queue)
Callback invoked to notify that the queue of messages is about to be sent to the
remote client.
|
default void |
ServerSession.DeQueueListener.deQueue(ServerSession session,
Queue<ServerMessage> queue,
List<ServerMessage.Mutable> replies)
Callback invoked to notify that the queue of messages and the message replies are
about to be sent to the remote client.
|
boolean |
ServerSession.MaxQueueListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
Message message)
Deprecated.
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
boolean |
ServerSession.QueueMaxedListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
default boolean |
ServerSession.MaxQueueListener.queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
CometDLoadServer.StatisticsService.exit(ServerSession remote,
ServerMessage message) |
void |
CometDLoadServer.StatisticsService.startStatistics(ServerSession remote,
ServerMessage message) |
void |
CometDLoadServer.StatisticsService.stopStatistics(ServerSession remote,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
ChatService.handleMembership(ServerSession client,
ServerMessage message) |
void |
CometDDemoServlet.Monitor.monitorMeta(ServerSession session,
ServerMessage message) |
void |
CometDDemoServlet.Monitor.monitorSubscribe(ServerSession session,
ServerMessage message) |
void |
CometDDemoServlet.Monitor.monitorUnsubscribe(ServerSession session,
ServerMessage message) |
void |
ChatService.privateChat(ServerSession client,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
ServerMessage |
OortService.ServerContext.getServerMessage() |
Modifier and Type | Method and Description |
---|---|
void |
Seti.LocalLocation.removed(ServerSession session,
ServerMessage message,
boolean timeout) |
Constructor and Description |
---|
ServerContext(ServerSession session,
ServerMessage message) |
Modifier and Type | Class and Description |
---|---|
class |
ServerMessageImpl |
Modifier and Type | Method and Description |
---|---|
Queue<ServerMessage> |
ServerSessionImpl.getQueue() |
List<ServerMessage> |
ServerSessionImpl.takeQueue(List<ServerMessage.Mutable> replies) |
Modifier and Type | Method and Description |
---|---|
protected void |
ServerSessionImpl.addMessage(ServerMessage message) |
protected void |
BayeuxServerImpl.addServerSession(ServerSessionImpl session,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message) |
boolean |
DefaultSecurityPolicy.canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message) |
protected void |
AbstractService.doInvoke(Method method,
ServerSession session,
ServerMessage message) |
protected void |
AbstractService.exception(String method,
ServerSession session,
LocalSession local,
ServerMessage message,
Throwable x)
Handles exceptions during the invocation of a mapped method.
|
ServerMessage.Mutable |
BayeuxServerImpl.newMessage(ServerMessage original) |
void |
ServerSessionImpl.notifyResumed(ServerMessage message,
boolean timeout) |
void |
ServerSessionImpl.notifySuspended(ServerMessage message,
long timeout) |
protected boolean |
ServerSessionImpl.removed(ServerMessage message,
boolean timeout) |
protected boolean |
ServerChannelImpl.subscribe(ServerSessionImpl session,
ServerMessage message) |
protected String |
AbstractServerTransport.toJSON(ServerMessage msg) |
protected boolean |
ServerChannelImpl.unsubscribe(ServerSessionImpl session,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
Authorizer.Result |
GrantAuthorizer.authorize(Authorizer.Operation operation,
ChannelId channel,
ServerSession session,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
ServerMessage |
AcknowledgedMessagesSessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
ServerMessage |
ActivityExtension.SessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
ServerMessage |
BinarySessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
protected ServerSession.Extension |
ActivityExtension.newSessionExtension(ServerSession session,
ServerMessage handshake)
Creates a new
ServerSession.Extension that monitors the activity of the given ServerSession |
void |
AcknowledgedMessagesSessionExtension.queued(ServerSession sender,
ServerMessage message) |
ServerMessage |
AcknowledgedMessagesSessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
ServerMessage |
ActivityExtension.SessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
ServerMessage |
BinarySessionExtension.send(ServerSession sender,
ServerSession session,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
AcknowledgedMessagesSessionExtension.deQueue(ServerSession session,
Queue<ServerMessage> queue) |
void |
AcknowledgedMessagesSessionExtension.deQueue(ServerSession session,
Queue<ServerMessage> queue,
List<ServerMessage.Mutable> replies) |
default void |
AcknowledgedMessagesExtension.Listener.onBatchSend(ServerSession session,
List<ServerMessage> messages,
long batch)
Callback method invoked when a batch of message is about to be sent to a client session.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
AbstractHttpTransport.toJSONBytes(ServerMessage msg) |
protected void |
AbstractStreamHttpTransport.writeMessage(AbstractHttpTransport.Context context,
javax.servlet.ServletOutputStream output,
ServerMessage message) |
protected void |
AbstractStreamHttpTransport.writeMessage(javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletOutputStream output,
ServerSessionImpl session,
ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractStreamHttpTransport.write(AbstractHttpTransport.Context context,
List<ServerMessage> messages,
Promise<Void> promise) |
protected void |
AsyncJSONTransport.write(AbstractHttpTransport.Context context,
List<ServerMessage> messages,
Promise<Void> promise) |
protected abstract void |
AbstractHttpTransport.write(AbstractHttpTransport.Context context,
List<ServerMessage> messages,
Promise<Void> promise) |
protected void |
AbstractStreamHttpTransport.writeComplete(AbstractHttpTransport.Context context,
List<ServerMessage> messages) |
protected void |
AsyncJSONTransport.writeComplete(AbstractHttpTransport.Context context,
List<ServerMessage> messages) |
Constructor and Description |
---|
Writer(AbstractHttpTransport.Context context,
List<ServerMessage> messages,
Promise<Void> promise) |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractWebSocketTransport.toJSON(ServerMessage message) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractWebSocketEndPoint.writeComplete(AbstractWebSocketEndPoint.Context context,
List<ServerMessage> messages) |
protected void |
AbstractWebSocketTransport.writeComplete(AbstractWebSocketEndPoint.Context context,
List<ServerMessage> messages) |
Modifier and Type | Method and Description |
---|---|
protected void |
WebSocketEndPoint.writeComplete(AbstractWebSocketEndPoint.Context context,
List<ServerMessage> messages) |
Copyright © 2008–2024 The CometD Project. All rights reserved.