Uses of Interface
org.cometd.bayeux.Promise
-
-
Uses of Promise in org.cometd.bayeux
Classes in org.cometd.bayeux that implement Promise Modifier and Type Class Description static class
Promise.Completable<S>
A CompletableFuture that is also a Promise.Fields in org.cometd.bayeux declared as Promise Modifier and Type Field Description static Promise<?>
Promise. NOOP
Shared instance whose methods are implemented empty,Methods in org.cometd.bayeux that return Promise Modifier and Type Method Description static <T> Promise<T>
Promise. complete(java.util.function.BiConsumer<T,java.lang.Throwable> fn)
Returns a Promise that, when completed, invokes the givenBiConsumer
function.static <T> Promise<T>
Promise. from(java.util.function.Consumer<T> succeed, java.util.function.Consumer<java.lang.Throwable> fail)
static <T> Promise<T>
Promise. noop()
-
Uses of Promise in org.cometd.bayeux.client
Methods in org.cometd.bayeux.client with parameters of type Promise Modifier and Type Method Description default void
ClientSession.Extension. incoming(ClientSession session, Message.Mutable message, Promise<java.lang.Boolean> promise)
Callback method invoked every time a message is incoming.default void
ClientSession.Extension. outgoing(ClientSession session, Message.Mutable message, Promise<java.lang.Boolean> promise)
Callback method invoked every time a message is outgoing. -
Uses of Promise in org.cometd.bayeux.server
Methods in org.cometd.bayeux.server with parameters of type Promise 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 givenoperation
on the givenchannel
.default void
SecurityPolicy. canCreate(BayeuxServer server, ServerSession session, java.lang.String channelId, ServerMessage message, Promise<java.lang.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<java.lang.Boolean> promise)
Checks if a handshake message should be accepted.default void
SecurityPolicy. canPublish(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message, Promise<java.lang.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<java.lang.Boolean> promise)
Checks if a subscribe message from a client is allowed to subscribe to a channel.void
ServerSession. deliver(Session sender, java.lang.String channel, java.lang.Object data, Promise<java.lang.Boolean> promise)
Delivers the given information to this session.void
ServerSession. deliver(Session sender, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
Delivers the given message to this session.default void
BayeuxServer.Extension. incoming(ServerSession from, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
Callback method invoked every time a message is incoming.default void
ServerSession.Extension. incoming(ServerSession session, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
Callback method invoked every time a message is incoming.default void
ServerChannel.MessageListener. onMessage(ServerSession sender, ServerChannel channel, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
Callback invoked when a message is being published.default void
ServerSession.MessageListener. onMessage(ServerSession session, ServerSession sender, ServerMessage message, Promise<java.lang.Boolean> promise)
Callback invoked when a message is sent.default void
BayeuxServer.Extension. outgoing(ServerSession from, ServerSession to, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
Callback method invoked every time a message is outgoing.default void
ServerSession.Extension. outgoing(ServerSession sender, ServerSession session, ServerMessage.Mutable message, Promise<ServerMessage.Mutable> promise)
Callback method invoked every time a message is outgoing.void
ServerChannel. publish(Session from, java.lang.Object data, Promise<java.lang.Boolean> promise)
Publishes the given information to this channel.void
ServerChannel. publish(Session from, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
Publishes the given message to this channel, delivering the message to all theServerSession
s subscribed to this channel. -
Uses of Promise in org.cometd.client
Methods in org.cometd.client with parameters of type Promise Modifier and Type Method Description protected void
BayeuxClient. sendMessages(java.util.List<Message.Mutable> messages, Promise<java.lang.Boolean> promise)
-
Uses of Promise in org.cometd.client.http.jetty
Methods in org.cometd.client.http.jetty with parameters of type Promise Modifier and Type Method Description protected void
JettyHttpClientTransport. customize(org.eclipse.jetty.client.api.Request request, Promise<org.eclipse.jetty.client.api.Request> promise)
-
Uses of Promise in org.cometd.client.http.okhttp
Methods in org.cometd.client.http.okhttp with parameters of type Promise Modifier and Type Method Description protected void
OkHttpClientTransport. customize(okhttp3.Request.Builder request, Promise<okhttp3.Request.Builder> promise)
-
Uses of Promise in org.cometd.client.transport
Methods in org.cometd.client.transport with parameters of type Promise Modifier and Type Method Description default void
TransportListener. onTimeout(java.util.List<? extends Message> messages, Promise<java.lang.Long> promise)
Callback method invoked when the send of a batch of messages expires before receiving a response from the server, controlled by themaxNetworkDelay
option. -
Uses of Promise in org.cometd.common
Methods in org.cometd.common with parameters of type Promise Modifier and Type Method Description protected void
AbstractClientSession. extendIncoming(Message.Mutable message, Promise<java.lang.Boolean> promise)
protected void
AbstractClientSession. extendOutgoing(Message.Mutable message, Promise<java.lang.Boolean> promise)
void
AbstractClientSession. receive(Message.Mutable message, Promise<java.lang.Void> promise)
Receives a message (from the server) and process it.static <T,R>
voidAsyncFoldLeft. reverseRun(java.util.List<T> list, R zero, AsyncFoldLeft.Operation<T,R> operation, Promise<R> promise)
Processes, in reverse order, the given sequence of elements.static <T,R>
voidAsyncFoldLeft. run(java.lang.Iterable<T> iterable, R zero, AsyncFoldLeft.Operation<T,R> operation, Promise<R> promise)
Processes the given sequence of elements.static <T,R>
voidAsyncFoldLeft. run(T[] array, R zero, AsyncFoldLeft.Operation<T,R> operation, Promise<R> promise)
Processes the given array of elements. -
Uses of Promise in org.cometd.server
Methods in org.cometd.server that return Promise Modifier and Type Method Description protected Promise<java.lang.Boolean>
BayeuxServerImpl. resolveLoop(AsyncFoldLeft.Loop<java.lang.Boolean> loop)
Methods in org.cometd.server with parameters of type Promise Modifier and Type Method Description void
ServerSessionImpl. deliver(Session sender, java.lang.String channelId, java.lang.Object data, Promise<java.lang.Boolean> promise)
void
ServerSessionImpl. deliver(Session sender, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
protected void
ServerSessionImpl. deliver1(ServerSession sender, ServerMessage.Mutable mutable, Promise<java.lang.Boolean> promise)
protected void
ServerSessionImpl. extendIncoming(ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
protected void
BayeuxServerImpl. extendOutgoing(ServerSession sender, ServerSession session, ServerMessage.Mutable message, Promise<java.lang.Boolean> promise)
protected void
ServerSessionImpl. extendOutgoing(ServerSession sender, ServerMessage.Mutable message, Promise<ServerMessage.Mutable> promise)
void
BayeuxServerImpl. extendReply(ServerSessionImpl sender, ServerSessionImpl session, ServerMessage.Mutable reply, Promise<ServerMessage.Mutable> promise)
void
BayeuxServerImpl. handle(ServerSessionImpl session, ServerMessage.Mutable message, Promise<ServerMessage.Mutable> promise)
void
AbstractServerTransport. processReply(ServerSessionImpl session, ServerMessage.Mutable reply, Promise<ServerMessage.Mutable> promise)
protected void
BayeuxServerImpl. publish(ServerSessionImpl session, ServerChannelImpl channel, ServerMessage.Mutable message, boolean receiving, Promise<java.lang.Boolean> promise)
void
ServerChannelImpl. publish(Session from, java.lang.Object data, Promise<java.lang.Boolean> promise)
void
ServerChannelImpl. publish(Session from, ServerMessage.Mutable mutable, Promise<java.lang.Boolean> promise)
void
LocalSessionImpl. receive(Message.Mutable message, Promise<java.lang.Void> promise)
-
Uses of Promise in org.cometd.server.http
Methods in org.cometd.server.http that return Promise Modifier and Type Method Description Promise<java.lang.Void>
AbstractHttpTransport.LongPollScheduler. getPromise()
Methods in org.cometd.server.http with parameters of type Promise Modifier and Type Method Description protected void
AbstractHttpTransport. flush(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise)
protected void
AbstractHttpTransport. handleMessage(AbstractHttpTransport.Context context, ServerMessage.Mutable message, Promise<ServerMessage.Mutable> promise)
protected AbstractHttpTransport.HttpScheduler
AbstractStreamHttpTransport. newHttpScheduler(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable message, long timeout)
protected AbstractHttpTransport.HttpScheduler
AsyncJSONTransport. newHttpScheduler(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable reply, long timeout)
protected void
AbstractStreamHttpTransport. process(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise)
protected void
AsyncJSONTransport. process(java.lang.String json, AbstractHttpTransport.Context context, Promise<java.lang.Void> promise)
protected void
AbstractHttpTransport. processMessages(AbstractHttpTransport.Context context, java.util.List<ServerMessage.Mutable> messages, Promise<java.lang.Void> promise)
protected void
AbstractHttpTransport. resume(AbstractHttpTransport.Context context, ServerMessage.Mutable message, Promise<java.lang.Void> promise)
protected abstract AbstractHttpTransport.HttpScheduler
AbstractHttpTransport. suspend(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable message, long timeout)
protected AbstractHttpTransport.HttpScheduler
AbstractStreamHttpTransport. suspend(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable message, long timeout)
protected AbstractHttpTransport.HttpScheduler
AsyncJSONTransport. suspend(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable message, long timeout)
protected abstract void
AbstractHttpTransport. write(AbstractHttpTransport.Context context, java.util.List<ServerMessage> messages, Promise<java.lang.Void> promise)
protected void
AbstractStreamHttpTransport. write(AbstractHttpTransport.Context context, java.util.List<ServerMessage> messages, Promise<java.lang.Void> promise)
protected void
AsyncJSONTransport. write(AbstractHttpTransport.Context context, java.util.List<ServerMessage> messages, Promise<java.lang.Void> promise)
Constructors in org.cometd.server.http with parameters of type Promise Constructor Description AbstractReader(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise)
CharsetReader(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, java.nio.charset.Charset charset)
DispatchingLongPollScheduler(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable message, long timeout)
LongPollScheduler(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, ServerMessage.Mutable message, long timeout)
UTF8Reader(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise)
Writer(AbstractHttpTransport.Context context, java.util.List<ServerMessage> messages, Promise<java.lang.Void> promise)
-
Uses of Promise in org.cometd.server.websocket.common
Methods in org.cometd.server.websocket.common with parameters of type Promise Modifier and Type Method Description protected void
AbstractWebSocketEndPoint. flush(AbstractWebSocketEndPoint.Context context, Promise<java.lang.Void> promise)
void
AbstractWebSocketEndPoint. onMessage(java.lang.String data, Promise<java.lang.Void> p)
-