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) |
protected 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 © 2015 The Apache Software Foundation