public class ForwardingAsyncHandler<REQUEST,RESPONSE> extends Object implements AsyncHandler<REQUEST,RESPONSE>
| Constructor and Description |
|---|
ForwardingAsyncHandler(AsyncHandler<REQUEST,RESPONSE> delegate) |
| 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.
|
@ConstructorProperties(value="delegate") public ForwardingAsyncHandler(AsyncHandler<REQUEST,RESPONSE> delegate)
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.Copyright © 2016–2024. All rights reserved.