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.TimeoutException
public void response(MessageIn message)
response
in interface IAsyncCallback
message
- response received.public boolean isLatencyForSnitch()
isLatencyForSnitch
in interface IAsyncCallback
Copyright © 2013 The Apache Software Foundation