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, waitingFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
trackLatencyForSnitch
protected 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)
AbstractWriteResponseHandler
onResponse
in interface RequestCallback<T>
onResponse
in class AbstractWriteResponseHandler<T>
m
- response received.protected int ackCount()
ackCount
in class AbstractWriteResponseHandler<T>
Copyright © 2009-2021 The Apache Software Foundation