F
- The data type of the callback“s response in case of successful outcome.public interface Continuation<F>
Modifier and Type | Method and Description |
---|---|
void |
onError(java.lang.Throwable cause)
This method gets called when the operation fails.
|
void |
onSuccess(F result)
This method is called when the operation succeeds.
|
void onSuccess(F result) throws java.lang.Exception
result
- The result of the completed operationjava.lang.Exception
void onError(java.lang.Throwable cause) throws java.lang.Exception
cause
- The cause of the failurejava.lang.Exception