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)
result
- void onError(java.lang.Throwable cause)
cause
- The cause of the failure