public class TruncateResponseHandler extends java.lang.Object implements IAsyncCallback
| Modifier and Type | Field and Description | 
|---|---|
| protected SimpleCondition | condition | 
| protected static org.slf4j.Logger | logger | 
| protected java.util.concurrent.atomic.AtomicInteger | responses | 
isAlive| Constructor and Description | 
|---|
| TruncateResponseHandler(int responseCount) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | get() | 
| boolean | isLatencyForSnitch() | 
| void | response(MessageIn message) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsBackPressureprotected 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 response(MessageIn message)
response in interface IAsyncCallbackmessage - response received.public boolean isLatencyForSnitch()
isLatencyForSnitch in interface IAsyncCallbackCopyright © 2018 The Apache Software Foundation