Class FuturePromise<C>
java.lang.Object
org.eclipse.jetty.util.FuturePromise<C>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.StateNested classes/interfaces inherited from interface Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Throwableprivate final AtomicBooleanprivate final CountDownLatchprivate Cprivate static Throwable -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
COMPLETED
-
_done
-
_latch
-
_cause
-
_result
-
-
Constructor Details
-
FuturePromise
public FuturePromise() -
FuturePromise
-
FuturePromise
-
-
Method Details
-
succeeded
-
failed
-
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<C>
-
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
-