public class TruncateResponseHandler extends java.lang.Object implements RequestCallback
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() |
void |
onResponse(Message message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokeOnFailure, onFailure, trackLatencyForSnitch
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 onResponse(Message message)
onResponse
in interface RequestCallback
message
- response received.Copyright © 2009-2020 The Apache Software Foundation