public interface ClientHandlerCallback<RESP extends MessageBody>
ClientHandler.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable cause)
Called on any failure, which is not related to a specific request.
|
void |
onRequestFailure(long requestId,
Throwable cause)
Called on a failed request.
|
void |
onRequestResult(long requestId,
RESP response)
Called on a successful request.
|
void onRequestResult(long requestId,
RESP response)
requestId - ID of the requestresponse - The received responsevoid onRequestFailure(long requestId,
Throwable cause)
requestId - ID of the requestcause - Cause of the request failurevoid onFailure(Throwable cause)
This can be for example a caught Exception in the channel pipeline or an unexpected channel close.
cause - Cause of the failureCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.