Package com.oracle.bmc.responses
Interface AsyncHandler<REQUEST,RESPONSE>
-
- Type Parameters:
REQUEST
- The request type.RESPONSE
- The response type.
- All Known Implementing Classes:
ForwardingAsyncHandler
,NoOpAsyncHandler
,RefreshAuthTokenWrapper
,RefreshAuthTokenWrappingAsyncHandler
,StreamClosingAsyncHandler
public interface AsyncHandler<REQUEST,RESPONSE>
Callback for asynchronous requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(REQUEST request, Throwable error)
Called if the request could not be completed successfully.void
onSuccess(REQUEST request, RESPONSE response)
Called if the request was successfully completed.
-