Package com.thalesgroup.gemalto.d1
Interface D1Task.Callback<T>
- Type Parameters:
T- The type of the returning data.
- Enclosing class:
- D1Task
public static interface D1Task.Callback<T>
Generic callback to return result of an asynchronous call.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonError(D1Exception exception) The request failed while executing.voidThe request has been successfully executed.
-
Method Details
-
onSuccess
The request has been successfully executed.- Parameters:
data- Result of the request. Use the API to check the actual result to determine if this argument is nullable. Typically, it is a non-null value. When the type T isVoid, the returned argument is alwaysnull.
-
onError
The request failed while executing.- Parameters:
exception- The cause of the failure.
-