Package org.apache.cassandra.service
Class FailureRecordingCallback<T>
- java.lang.Object
-
- org.apache.cassandra.service.FailureRecordingCallback<T>
-
- All Implemented Interfaces:
RequestCallback<T>,RequestCallbackWithFailure<T>
- Direct Known Subclasses:
PaxosRequestCallback
public abstract class FailureRecordingCallback<T> extends java.lang.Object implements RequestCallbackWithFailure<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFailureRecordingCallback.AsMapstatic classFailureRecordingCallback.FailureResponses
-
Constructor Summary
Constructors Constructor Description FailureRecordingCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FailureRecordingCallback.AsMapfailureReasonsAsMap()voidonFailure(InetAddressAndPort from, RequestFailureReason failureReason)Called when there is an exception on the remote node or timeout happensprotected voidonFailureWithMutex(InetAddressAndPort from, RequestFailureReason failureReason)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.net.RequestCallback
onResponse, trackLatencyForSnitch
-
Methods inherited from interface org.apache.cassandra.net.RequestCallbackWithFailure
invokeOnFailure
-
-
-
-
Method Detail
-
onFailure
public void onFailure(InetAddressAndPort from, RequestFailureReason failureReason)
Description copied from interface:RequestCallbackWithFailureCalled when there is an exception on the remote node or timeout happens- Specified by:
onFailurein interfaceRequestCallback<T>- Specified by:
onFailurein interfaceRequestCallbackWithFailure<T>
-
onFailureWithMutex
protected void onFailureWithMutex(InetAddressAndPort from, RequestFailureReason failureReason)
-
failureReasonsAsMap
protected FailureRecordingCallback.AsMap failureReasonsAsMap()
-
-