public interface TaskCallback<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
onException(ObsException exception,
V singleRequest)
Callback when an exception is thrown during task execution.
|
void |
onSuccess(K result)
Callback when the task is executed successfully.
|
void onSuccess(K result)
result - Callback parameter. Generally, the return type of a specific operation is used.void onException(ObsException exception, V singleRequest)
exception - Exception informationsingleRequest - The request that causes an exceptionCopyright © 2019. All rights reserved.