Interface StreamingCallback<T>
public interface StreamingCallback<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCompletion
(T result, Exception exception) The callback method that the user can implement to do asynchronous handling of the response.
-
Method Details
-
onCompletion
The callback method that the user can implement to do asynchronous handling of the response. T defines the type of the result. When T=Void then there is no specific response expected but any errors are reported on the exception object. For all other values of T, one of the two arguments would be null.- Parameters:
result
- The result of the request. This would be non null when the request executed successfullyexception
- The exception that was reported on execution of the request
-