Package org.apache.cassandra.net
Interface RequestCallbackWithFailure<T>
-
- All Superinterfaces:
RequestCallback<T>
- All Known Implementing Classes:
FailureRecordingCallback
,PaxosCleanupComplete
,PaxosCleanupSession
,PaxosCommit
,PaxosFinishPrepareCleanup
,PaxosPrepare
,PaxosPrepareRefresh
,PaxosPropose
,PaxosRequestCallback
,PaxosStartPrepareCleanup
public interface RequestCallbackWithFailure<T> extends RequestCallback<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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-
Methods inherited from interface org.apache.cassandra.net.RequestCallback
onResponse, trackLatencyForSnitch
-
-
-
-
Method Detail
-
onFailure
void onFailure(InetAddressAndPort from, RequestFailureReason failureReason)
Called when there is an exception on the remote node or timeout happens- Specified by:
onFailure
in interfaceRequestCallback<T>
-
invokeOnFailure
default boolean invokeOnFailure()
Description copied from interface:RequestCallback
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. TODO: this is an error prone method, and we should be handling failures everywhere so we should probably just start doing that, and remove this method- Specified by:
invokeOnFailure
in interfaceRequestCallback<T>
- Returns:
- true if the callback should be invoked on failure
-
-