java.lang.Object
org.eclipse.jetty.util.FutureCallback
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.NestedNested classes/interfaces inherited from interface java.util.concurrent.Future
Future.StateNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task -
Field Summary
FieldsFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Callback
completeWithMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, stateMethods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Field Details
-
SUCCEEDED
-
-
Constructor Details
-
FutureCallback
public FutureCallback() -
FutureCallback
public FutureCallback(boolean completed) -
FutureCallback
-
-
Method Details
-
succeeded
public void succeeded()Description copied from interface:CallbackCallback invoked when the operation completes.
-
failed
Description copied from interface:CallbackCallback invoked when the operation fails.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<Void>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<Void>- Throws:
InterruptedExceptionExecutionException
-
get
public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<Void>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
block
- Throws:
IOException
-
block
- Throws:
IOException
-
rethrow
- Throws:
IOException
-
toString
-