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.ForWrite replicaPlan,
java.lang.Runnable callback,
WriteType writeType,
java.util.function.Supplier<Mutation> hintOnFailure,
long queryStartNanoTime) |
WriteResponseHandler(ReplicaPlan.ForWrite replicaPlan,
WriteType writeType,
java.util.function.Supplier<Mutation> hintOnFailure,
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.ForWrite replicaPlan, java.lang.Runnable callback, WriteType writeType, java.util.function.Supplier<Mutation> hintOnFailure, long queryStartNanoTime)
public WriteResponseHandler(ReplicaPlan.ForWrite replicaPlan, WriteType writeType, java.util.function.Supplier<Mutation> hintOnFailure, 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-2022 The Apache Software Foundation