Package org.eclipse.jetty.util
Class Promise.Wrapper<W>
- java.lang.Object
-
- org.eclipse.jetty.util.Promise.Wrapper<W>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(java.lang.Throwable x)
Callback invoked when the operation fails.Promise<W>
getPromise()
void
succeeded(W result)
Callback invoked when the operation completes.Promise<W>
unwrap()
-
-
-
Method Detail
-
succeeded
public void succeeded(W result)
Description copied from interface:Promise
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfacePromise<W>
- Parameters:
result
- the context- See Also:
Promise.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:Promise
Callback invoked when the operation fails.
-
-