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 -
Method Summary
-
Constructor Details
-
FuturePromise
public FuturePromise() -
FuturePromise
-
FuturePromise
-
-
Method Details
-
succeeded
Description copied from interface:PromiseCallback invoked when the operation completes.
-
failed
Description copied from interface:PromiseCallback invoked when the operation fails.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<C>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<C>- Throws:
InterruptedExceptionExecutionException
-
get
public C get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<C>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
rethrow
- Throws:
IOException
-
toString
-