Interface ClientHandlerCallback<RESP extends MessageBody>
-
@Internal public interface ClientHandlerCallback<RESP extends MessageBody>
Callback forClientHandler
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
onRequestResult
void onRequestResult(long requestId, RESP response)
Called on a successful request.- Parameters:
requestId
- ID of the requestresponse
- The received response
-
onRequestFailure
void onRequestFailure(long requestId, Throwable cause)
Called on a failed request.- Parameters:
requestId
- ID of the requestcause
- Cause of the request failure
-
onFailure
void onFailure(Throwable cause)
Called on any failure, which is not related to a specific request.This can be for example a caught Exception in the channel pipeline or an unexpected channel close.
- Parameters:
cause
- Cause of the failure
-
-