Package org.eclipse.jetty.client
Class HttpProxy.TunnelPromise
java.lang.Object
org.eclipse.jetty.client.HttpProxy.TunnelPromise
- All Implemented Interfaces:
Promise<Connection>
- Enclosing class:
- HttpProxy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Response.CompleteListener
private final Promise<Connection>
private final Request
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TunnelPromise
(Request request, Response.CompleteListener listener, Promise<Connection> promise) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback invoked when the operation fails.private void
setEndPoint
(EndPoint endPoint) void
succeeded
(Connection connection) Callback invoked when the operation completes.
-
Field Details
-
request
-
listener
-
promise
-
-
Constructor Details
-
TunnelPromise
private TunnelPromise(Request request, Response.CompleteListener listener, Promise<Connection> promise)
-
-
Method Details
-
succeeded
Description copied from interface:Promise
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfacePromise<Connection>
- Parameters:
connection
- the context- See Also:
-
failed
Description copied from interface:Promise
Callback invoked when the operation fails.
- Specified by:
failed
in interfacePromise<Connection>
- Parameters:
x
- the reason for the operation failure
-
setEndPoint
-