public class WriteResponseHandler<T> extends AbstractWriteResponseHandler<T>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
protected int |
responses |
callback, replicaPlan, writeType| Constructor and Description |
|---|
WriteResponseHandler(ReplicaPlan.ForTokenWrite replicaPlan,
java.lang.Runnable callback,
WriteType writeType,
long queryStartNanoTime) |
WriteResponseHandler(ReplicaPlan.ForTokenWrite replicaPlan,
WriteType writeType,
long queryStartNanoTime) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
ackCount() |
void |
onResponse(Message<T> m)
null message means "response from local write"
|
blockFor, candidateReplicaCount, consistencyLevel, currentTimeoutNanos, expired, get, invokeOnFailure, logResponseToIdealCLDelegate, maybeTryAdditionalReplicas, onFailure, setIdealCLResponseHandler, signal, waitingForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrackLatencyForSnitchprotected static final org.slf4j.Logger logger
protected volatile int responses
public WriteResponseHandler(ReplicaPlan.ForTokenWrite replicaPlan, java.lang.Runnable callback, WriteType writeType, long queryStartNanoTime)
public WriteResponseHandler(ReplicaPlan.ForTokenWrite replicaPlan, WriteType writeType, long queryStartNanoTime)
public void onResponse(Message<T> m)
AbstractWriteResponseHandleronResponse in interface RequestCallback<T>onResponse in class AbstractWriteResponseHandler<T>m - response received.protected int ackCount()
ackCount in class AbstractWriteResponseHandler<T>Copyright © 2009-2022 The Apache Software Foundation