REQUEST
- The request type.RESPONSE
- The response type.public interface AsyncHandler<REQUEST,RESPONSE>
Callback for asynchronous requests.
Modifier and Type | Method and 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.
|
Copyright © 2016–2024. All rights reserved.