Package org.eclipse.jetty.util
Class FutureCallback
java.lang.Object
org.eclipse.jetty.util.FutureCallback
@Deprecated(since="2021-05-27")
public class FutureCallback
extends Object
implements Future<Void>, Callback
Deprecated.
-
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 -
Field Summary
FieldsFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.FutureCallback(boolean completed) Deprecated.FutureCallback(Throwable failed) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) Deprecated.voidDeprecated.Callback invoked when the operation fails.get()Deprecated.Deprecated.booleanDeprecated.booleanisDone()Deprecated.static voidDeprecated.voidDeprecated.Callback invoked when the operation completes.toString()Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, stateMethods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Field Details
-
SUCCEEDED
Deprecated.
-
-
Constructor Details
-
FutureCallback
public FutureCallback()Deprecated. -
FutureCallback
public FutureCallback(boolean completed) Deprecated. -
FutureCallback
Deprecated.
-
-
Method Details
-
succeeded
public void succeeded()Deprecated.Description copied from interface:CallbackCallback invoked when the operation completes.
-
failed
Deprecated.Description copied from interface:CallbackCallback invoked when the operation fails.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) Deprecated. -
isCancelled
public boolean isCancelled()Deprecated.- Specified by:
isCancelledin interfaceFuture<Void>
-
isDone
public boolean isDone()Deprecated. -
get
Deprecated.- Specified by:
getin interfaceFuture<Void>- Throws:
InterruptedExceptionExecutionException
-
get
public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
getin interfaceFuture<Void>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
rethrow
Deprecated.- Throws:
IOException
-
toString
Deprecated.
-