public interface TaskCallback
AsyncStreamTask
to notify when an asynchronous
process has completed. If the callback is fired multiple times, it will throw IllegalStateException.Modifier and Type | Method and Description |
---|---|
void |
complete()
Invoke when the asynchronous process completed with success.
|
void |
failure(java.lang.Throwable t)
Invoke when the asynchronous process failed with an error.
|