- All Implemented Interfaces:
Promise<W>
- Enclosing interface:
Promise<C>
public static class Promise.Wrapper<W>
extends Object
implements Promise<W>
-
-
-
Constructor Summary
Constructors
-
Method Summary
void
Callback invoked when the operation fails.
void
Callback invoked when the operation completes.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
Method Details
-
succeeded
public void succeeded(W result)
Description copied from interface: Promise
Callback invoked when the operation completes.
- Specified by:
succeeded
in interface Promise<W>
- Parameters:
result
- the context
- See Also:
-
-
failed
Description copied from interface: Promise
Callback invoked when the operation fails.
- Specified by:
failed
in interface Promise<W>
- Parameters:
x
- the reason for the operation failure
-
-