Package org.eclipse.jetty.util
Class FutureCallback
- 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.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description static FutureCallback
SUCCEEDED
Deprecated.-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Constructor Description FutureCallback()
Deprecated.FutureCallback(boolean completed)
Deprecated.FutureCallback(Throwable failed)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
Deprecated.void
failed(Throwable cause)
Deprecated.Callback invoked when the operation fails.Void
get()
Deprecated.Void
get(long timeout, TimeUnit unit)
Deprecated.boolean
isCancelled()
Deprecated.boolean
isDone()
Deprecated.static void
rethrow(ExecutionException e)
Deprecated.void
succeeded()
Deprecated.Callback invoked when the operation completes.String
toString()
Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
-
-
-
Field Detail
-
SUCCEEDED
public static final FutureCallback SUCCEEDED
Deprecated.
-
-
Constructor Detail
-
FutureCallback
public FutureCallback()
Deprecated.
-
FutureCallback
public FutureCallback(boolean completed)
Deprecated.
-
FutureCallback
public FutureCallback(Throwable failed)
Deprecated.
-
-
Method Detail
-
succeeded
public void succeeded()
Deprecated.Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(Throwable cause)
Deprecated.Description copied from interface:Callback
Callback invoked when the operation fails.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.
-
isCancelled
public boolean isCancelled()
Deprecated.- Specified by:
isCancelled
in interfaceFuture<Void>
-
get
public Void get() throws InterruptedException, ExecutionException
Deprecated.- Specified by:
get
in interfaceFuture<Void>
- Throws:
InterruptedException
ExecutionException
-
get
public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Deprecated.- Specified by:
get
in interfaceFuture<Void>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
rethrow
public static void rethrow(ExecutionException e) throws IOException
Deprecated.- Throws:
IOException
-
-