Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
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() |
public void succeeded(W result)
Promise
Callback invoked when the operation completes.
succeeded
in interface Promise<W>
result
- the contextPromise.failed(Throwable)
public void failed(java.lang.Throwable x)
Promise
Callback invoked when the operation fails.
Copyright © 1995–2018 Webtide. All rights reserved.