Package org.apache.cassandra.service
Class TruncateResponseHandler
java.lang.Object
org.apache.cassandra.service.TruncateResponseHandler
- All Implemented Interfaces:
RequestCallback<TruncateResponse>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Conditionprotected static final org.slf4j.Loggerprotected final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidget()booleanReturns 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.voidonFailure(InetAddressAndPort from, RequestFailureReason failureReason) Called when there is an exception on the remote node or timeout happensvoidonResponse(Message<TruncateResponse> message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.net.RequestCallback
trackLatencyForSnitch
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
condition
-
responses
-
-
Constructor Details
-
TruncateResponseHandler
public TruncateResponseHandler(int responseCount)
-
-
Method Details
-
get
- Throws:
TimeoutException
-
onResponse
- Specified by:
onResponsein interfaceRequestCallback<TruncateResponse>- Parameters:
message- response received.
-
onFailure
Description copied from interface:RequestCallbackCalled when there is an exception on the remote node or timeout happens- Specified by:
onFailurein interfaceRequestCallback<TruncateResponse>
-
invokeOnFailure
public boolean invokeOnFailure()Description copied from interface:RequestCallbackReturns 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:
invokeOnFailurein interfaceRequestCallback<TruncateResponse>- Returns:
- true if the callback should be invoked on failure
-