public class TruncateResponseHandler extends java.lang.Object implements RequestCallback<TruncateResponse>
| Modifier and Type | Field and Description |
|---|---|
protected SimpleCondition |
condition |
protected static org.slf4j.Logger |
logger |
protected java.util.concurrent.atomic.AtomicInteger |
responses |
| Constructor and Description |
|---|
TruncateResponseHandler(int responseCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
get() |
boolean |
invokeOnFailure() |
void |
onFailure(InetAddressAndPort from,
RequestFailureReason failureReason)
Called when there is an exception on the remote node or timeout happens
|
void |
onResponse(Message<TruncateResponse> message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrackLatencyForSnitchprotected static final org.slf4j.Logger logger
protected final SimpleCondition condition
protected final java.util.concurrent.atomic.AtomicInteger responses
public void get()
throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutExceptionpublic void onResponse(Message<TruncateResponse> message)
onResponse in interface RequestCallback<TruncateResponse>message - response received.public void onFailure(InetAddressAndPort from, RequestFailureReason failureReason)
RequestCallbackonFailure in interface RequestCallback<TruncateResponse>public boolean invokeOnFailure()
invokeOnFailure in interface RequestCallback<TruncateResponse>Copyright © 2009-2020 The Apache Software Foundation