Interface Callback<T>
- Type Parameters:
T
- the return value type
public interface Callback<T>
General-purpose interface for callbacks that can succeed or fail.
- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
onSuccess
This method is called on successful completion.- Parameters:
result
- the return value
-
onError
This method is called on failure.- Parameters:
error
- the error/exception object
-