Package org.eclipse.jetty.util
Class FuturePromise<C>
- java.lang.Object
-
- org.eclipse.jetty.util.FuturePromise<C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
-
-
Constructor Summary
Constructors Constructor Description FuturePromise()
Deprecated.FuturePromise(C result)
Deprecated.FuturePromise(C ctx, java.lang.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(java.lang.Throwable cause)
Deprecated.Callback invoked when the operation fails.C
get()
Deprecated.C
get(long timeout, java.util.concurrent.TimeUnit unit)
Deprecated.boolean
isCancelled()
Deprecated.boolean
isDone()
Deprecated.static void
rethrow(java.util.concurrent.ExecutionException e)
Deprecated.void
succeeded(C result)
Deprecated.Callback invoked when the operation completes.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
succeeded
public void succeeded(C result)
Deprecated.Description copied from interface:Promise
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfacePromise<C>
- Parameters:
result
- the context- See Also:
Promise.failed(Throwable)
-
failed
public void failed(java.lang.Throwable cause)
Deprecated.Description copied from interface:Promise
Callback invoked when the operation fails.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.- Specified by:
cancel
in interfacejava.util.concurrent.Future<C>
-
isCancelled
public boolean isCancelled()
Deprecated.- Specified by:
isCancelled
in interfacejava.util.concurrent.Future<C>
-
isDone
public boolean isDone()
Deprecated.- Specified by:
isDone
in interfacejava.util.concurrent.Future<C>
-
get
public C get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Deprecated.- Specified by:
get
in interfacejava.util.concurrent.Future<C>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
get
public C get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
Deprecated.- Specified by:
get
in interfacejava.util.concurrent.Future<C>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
-
rethrow
public static void rethrow(java.util.concurrent.ExecutionException e) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-