REQUEST - type of the requestRESPONSE - type of the responsepublic class NoOpAsyncHandler<REQUEST,RESPONSE> extends Object implements AsyncHandler<REQUEST,RESPONSE>
An async handler that doesn’t do anything.
| 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.
|
static <REQUEST,RESPONSE> |
singleton()
Return the singleton with the correct generic types.
|
public void onSuccess(REQUEST request, RESPONSE response)
AsyncHandlerCalled if the request was successfully completed.
onSuccess in interface AsyncHandler<REQUEST,RESPONSE>request - The request that was made.response - The response that was received.public void onError(REQUEST request, Throwable error)
AsyncHandlerCalled if the request could not be completed successfully.
onError in interface AsyncHandler<REQUEST,RESPONSE>request - The request that was made.error - The error that was received.public static final <REQUEST,RESPONSE> NoOpAsyncHandler<REQUEST,RESPONSE> singleton()
Return the singleton with the correct generic types.
REQUEST - type of the requestRESPONSE - type of the responseCopyright © 2016–2024. All rights reserved.