public interface RequestCallbackWithFailure<T> extends RequestCallback<T>
Modifier and Type | Method and Description |
---|---|
default boolean |
invokeOnFailure()
Returns true if the callback handles failure reporting - in which case the remove host will be asked to
report failures to us in the event of a problem processing the request.
|
void |
onFailure(InetAddressAndPort from,
RequestFailureReason failureReason)
Called when there is an exception on the remote node or timeout happens
|
onResponse, trackLatencyForSnitch
void onFailure(InetAddressAndPort from, RequestFailureReason failureReason)
onFailure
in interface RequestCallback<T>
default boolean invokeOnFailure()
RequestCallback
invokeOnFailure
in interface RequestCallback<T>
Copyright © 2009- The Apache Software Foundation