Uses of Interface
org.eclipse.jetty.util.Promise
-
Packages that use Promise Package Description org.eclipse.jetty.client Jetty Client : Implementation and Core Classes This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.org.eclipse.jetty.client.api Jetty Client : API Classesorg.eclipse.jetty.client.http org.eclipse.jetty.fcgi.client.http org.eclipse.jetty.http2 org.eclipse.jetty.http2.api org.eclipse.jetty.http2.client org.eclipse.jetty.http2.client.http org.eclipse.jetty.proxy Jetty Proxy : Async Proxy Supportorg.eclipse.jetty.util Jetty Util : Common Utility Classes -
-
Uses of Promise in org.eclipse.jetty.client
Methods in org.eclipse.jetty.client with parameters of type Promise Modifier and Type Method Description protected void
HttpDestination. createConnection(Promise<Connection> promise)
protected void
HttpClient. newConnection(HttpDestination destination, Promise<Connection> promise)
void
HttpDestination. newConnection(Promise<Connection> promise)
-
Uses of Promise in org.eclipse.jetty.client.api
Methods in org.eclipse.jetty.client.api with parameters of type Promise Modifier and Type Method Description void
Destination. newConnection(Promise<Connection> promise)
Creates asynchronously a new, unpooled,Connection
that will be returned at a later time through the givenPromise
. -
Uses of Promise in org.eclipse.jetty.client.http
Methods in org.eclipse.jetty.client.http with parameters of type Promise Modifier and Type Method Description protected HttpConnectionOverHTTP
HttpClientTransportOverHTTP. newHttpConnection(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise)
Constructors in org.eclipse.jetty.client.http with parameters of type Promise Constructor Description HttpConnectionOverHTTP(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise)
-
Uses of Promise in org.eclipse.jetty.fcgi.client.http
Methods in org.eclipse.jetty.fcgi.client.http with parameters of type Promise Modifier and Type Method Description protected HttpConnectionOverFCGI
HttpClientTransportOverFCGI. newHttpConnection(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise)
Constructors in org.eclipse.jetty.fcgi.client.http with parameters of type Promise Constructor Description HttpConnectionOverFCGI(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise, boolean multiplexed)
-
Uses of Promise in org.eclipse.jetty.http2
Methods in org.eclipse.jetty.http2 with parameters of type Promise Modifier and Type Method Description protected IStream
HTTP2Session. createLocalStream(int streamId, Promise<Stream> promise)
void
HTTP2Session. newStream(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener)
void
HTTP2Session. newStream(IStream.FrameList frames, Promise<Stream> promise, Stream.Listener listener)
void
ISession. newStream(IStream.FrameList frames, Promise<Stream> promise, Stream.Listener listener)
Sends the given list of frames to create a newStream
.void
HTTP2Session. push(IStream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener)
void
HTTP2Stream. push(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener)
void
ISession. push(IStream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener)
Enqueues the given PUSH_PROMISE frame to be written to the connection. -
Uses of Promise in org.eclipse.jetty.http2.api
Methods in org.eclipse.jetty.http2.api with parameters of type Promise Modifier and Type Method Description void
Session. newStream(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener)
Sends the given HEADERSframe
to create a newStream
.void
Stream. push(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener)
Sends the given PUSH_PROMISEframe
. -
Uses of Promise in org.eclipse.jetty.http2.client
Methods in org.eclipse.jetty.http2.client with parameters of type Promise Modifier and Type Method Description void
HTTP2Client. accept(SslContextFactory sslContextFactory, java.nio.channels.SocketChannel channel, Session.Listener listener, Promise<Session> promise)
void
HTTP2Client. connect(java.net.InetSocketAddress address, Session.Listener listener, Promise<Session> promise)
void
HTTP2Client. connect(SslContextFactory sslContextFactory, java.net.InetSocketAddress address, Session.Listener listener, Promise<Session> promise)
void
HTTP2Client. connect(SslContextFactory sslContextFactory, java.net.InetSocketAddress address, Session.Listener listener, Promise<Session> promise, java.util.Map<java.lang.String,java.lang.Object> context)
-
Uses of Promise in org.eclipse.jetty.http2.client.http
Methods in org.eclipse.jetty.http2.client.http with parameters of type Promise Modifier and Type Method Description protected void
HttpClientTransportOverHTTP2. connect(SslContextFactory sslContextFactory, java.net.InetSocketAddress address, Session.Listener listener, Promise<Session> promise, java.util.Map<java.lang.String,java.lang.Object> context)
-
Uses of Promise in org.eclipse.jetty.proxy
Methods in org.eclipse.jetty.proxy with parameters of type Promise Modifier and Type Method Description protected void
ConnectHandler. connectToServer(javax.servlet.http.HttpServletRequest request, java.lang.String host, int port, Promise<java.nio.channels.SocketChannel> promise)
-
Uses of Promise in org.eclipse.jetty.util
Classes in org.eclipse.jetty.util that implement Promise Modifier and Type Class Description class
FuturePromise<C>
static class
Promise.Adapter<U>
Empty implementation ofPromise
.static class
Promise.Completable<S>
A CompletableFuture that is also a Promise.static class
Promise.Wrapper<W>
Methods in org.eclipse.jetty.util that return Promise Modifier and Type Method Description static <T> Promise<T>
Promise. from(java.util.concurrent.CompletableFuture<? super T> completable)
Creates a promise from the given incomplete CompletableFuture.Promise<W>
Promise.Wrapper. getPromise()
Promise<W>
Promise.Wrapper. unwrap()
Methods in org.eclipse.jetty.util with parameters of type Promise Modifier and Type Method Description void
SocketAddressResolver.Async. resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
void
SocketAddressResolver. resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
Resolves the given host and port, returning aSocketAddress
through the givenPromise
with the default timeout.void
SocketAddressResolver.Sync. resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
Constructors in org.eclipse.jetty.util with parameters of type Promise Constructor Description Wrapper(Promise<W> promise)
-