Package | Description |
---|---|
org.cometd.bayeux | |
org.cometd.bayeux.client | |
org.cometd.bayeux.server |
Modifier and Type | Class | Description |
---|---|---|
static class |
Promise.Completable<S> |
A CompletableFuture that is also a Promise.
|
Modifier and Type | Field | Description |
---|---|---|
static Promise<?> |
Promise.NOOP |
Shared instance whose methods are implemented empty,
|
Modifier and Type | Method | Description |
---|---|---|
static <T> Promise<T> |
Promise.from(Consumer<T> succeed,
Consumer<Throwable> fail) |
|
static <T> Promise<T> |
Promise.noop() |
Modifier and Type | Method | 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.
|
Modifier and Type | Method | Description |
---|---|---|
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 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 void |
SecurityPolicy.canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message,
Promise<Boolean> promise) |
Checks if a handshake message should be accepted.
|
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 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.
|
void |
ServerSession.deliver(Session sender,
String channel,
Object data,
Promise<Boolean> promise) |
Delivers the given information to this session.
|
void |
ServerSession.deliver(Session sender,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
Delivers the given message to this session.
|
default void |
BayeuxServer.Extension.incoming(ServerSession from,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
Callback method invoked every time a message is incoming.
|
default void |
ServerSession.Extension.incoming(ServerSession session,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
Callback method invoked every time a message is incoming.
|
default void |
ServerChannel.MessageListener.onMessage(ServerSession sender,
ServerChannel channel,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
Callback invoked when a message is being published.
|
default void |
ServerSession.MessageListener.onMessage(ServerSession session,
ServerSession sender,
ServerMessage message,
Promise<Boolean> promise) |
Callback invoked when a message is sent.
|
default void |
BayeuxServer.Extension.outgoing(ServerSession from,
ServerSession to,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
Callback method invoked every time a message is outgoing.
|
default void |
ServerSession.Extension.outgoing(ServerSession session,
ServerMessage.Mutable message,
Promise<ServerMessage.Mutable> promise) |
Callback method invoked every time a message is outgoing.
|
void |
ServerChannel.publish(Session from,
Object data,
Promise<Boolean> promise) |
Publishes the given information to this channel.
|
void |
ServerChannel.publish(Session from,
ServerMessage.Mutable message,
Promise<Boolean> promise) |
Publishes the given message to this channel, delivering
the message to all the
ServerSession s subscribed to
this channel. |
Copyright © 2008–2017 The CometD Project. All rights reserved.