public interface IResultCallback
IMDApplication.runAsync(ICallable, IResultCallback)
to get informed when task has been finished.Modifier and Type | Method and Description |
---|---|
void |
onFailure(java.lang.Object task,
java.lang.Throwable t)
Gets called on failure.
|
void |
onSuccess(java.lang.Object task,
java.lang.Object result)
Gets called when task has been finished.
|
void onFailure(java.lang.Object task, java.lang.Throwable t)
task
- - the failed task.t
- - the thrown exceptionvoid onSuccess(java.lang.Object task, java.lang.Object result)
task
- - the executed task.result
- - result of the task. Can be Void