Package org.eclipse.jetty.util
Class FuturePromise<C>
- java.lang.Object
-
- org.eclipse.jetty.util.FuturePromise<C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
-
-
Constructor Summary
Constructors Constructor Description FuturePromise()Deprecated.FuturePromise(C result)Deprecated.FuturePromise(C ctx, Throwable failed)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Deprecated.voidfailed(Throwable cause)Deprecated.Callback invoked when the operation fails.Cget()Deprecated.Cget(long timeout, TimeUnit unit)Deprecated.booleanisCancelled()Deprecated.booleanisDone()Deprecated.static voidrethrow(ExecutionException e)Deprecated.voidsucceeded(C result)Deprecated.Callback invoked when the operation completes.StringtoString()Deprecated.
-
-
-
Method Detail
-
succeeded
public void succeeded(C result)
Deprecated.Description copied from interface:PromiseCallback invoked when the operation completes.
- Specified by:
succeededin interfacePromise<C>- Parameters:
result- the context- See Also:
Promise.failed(Throwable)
-
failed
public void failed(Throwable cause)
Deprecated.Description copied from interface:PromiseCallback invoked when the operation fails.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.
-
isCancelled
public boolean isCancelled()
Deprecated.- Specified by:
isCancelledin interfaceFuture<C>
-
get
public C get() throws InterruptedException, ExecutionException
Deprecated.- Specified by:
getin interfaceFuture<C>- Throws:
InterruptedExceptionExecutionException
-
get
public C get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Deprecated.- Specified by:
getin interfaceFuture<C>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
rethrow
public static void rethrow(ExecutionException e) throws IOException
Deprecated.- Throws:
IOException
-
-