U - The task's result typepublic abstract static class AsyncOperation.CompletionHandler<U>
extends java.lang.Object
success(Object) function throws an exception, the failure(Throwable)
function will also be called| Constructor and Description |
|---|
CompletionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
failure(java.lang.Throwable error)
Called if the background operation reported an error
|
void |
success(U result)
Called if the background operation successfully completed and reported a result
|
public void success(U result)
result - Result of the taskpublic void failure(java.lang.Throwable error)
error - Error thrown by the task