Package org.eclipse.jetty.util
Class FutureCallback
- java.lang.Object
 - 
- org.eclipse.jetty.util.FutureCallback
 
 
- 
- Direct Known Subclasses:
 FutureWriteCallback
@Deprecated(since="2021-05-27") public class FutureCallback extends java.lang.Object implements java.util.concurrent.Future<java.lang.Void>, Callback
Deprecated. 
- 
- 
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 FutureCallbackSUCCEEDEDDeprecated.- 
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FutureCallback()Deprecated.FutureCallback(boolean completed)Deprecated.FutureCallback(java.lang.Throwable failed)Deprecated. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Deprecated.voidfailed(java.lang.Throwable cause)Deprecated.Callback invoked when the operation fails.java.lang.Voidget()Deprecated.java.lang.Voidget(long timeout, java.util.concurrent.TimeUnit unit)Deprecated.booleanisCancelled()Deprecated.booleanisDone()Deprecated.static voidrethrow(java.util.concurrent.ExecutionException e)Deprecated.voidsucceeded()Deprecated.Callback invoked when the operation completes.java.lang.StringtoString()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. 
 - 
 
- 
Method Detail
- 
succeeded
public void succeeded()
Deprecated.Description copied from interface:CallbackCallback invoked when the operation completes.
- Specified by:
 succeededin interfaceCallback- See Also:
 Callback.failed(Throwable)
 
- 
failed
public void failed(java.lang.Throwable cause)
Deprecated.Description copied from interface:CallbackCallback invoked when the operation fails.
 
- 
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.- Specified by:
 cancelin interfacejava.util.concurrent.Future<java.lang.Void>
 
- 
isCancelled
public boolean isCancelled()
Deprecated.- Specified by:
 isCancelledin interfacejava.util.concurrent.Future<java.lang.Void>
 
- 
isDone
public boolean isDone()
Deprecated.- Specified by:
 isDonein interfacejava.util.concurrent.Future<java.lang.Void>
 
- 
get
public java.lang.Void get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionExceptionDeprecated.- Specified by:
 getin interfacejava.util.concurrent.Future<java.lang.Void>- Throws:
 java.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
 
- 
get
public java.lang.Void get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutExceptionDeprecated.- Specified by:
 getin interfacejava.util.concurrent.Future<java.lang.Void>- Throws:
 java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutException
 
- 
rethrow
public static void rethrow(java.util.concurrent.ExecutionException e) throws java.io.IOExceptionDeprecated.- Throws:
 java.io.IOException
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -