public class WriteResponseHandler<T> extends AbstractWriteResponseHandler<T>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected int |
responses |
callback, consistencyLevel, keyspace, naturalEndpoints, pendingEndpoints, start, writeType
isAlive
Constructor and Description |
---|
WriteResponseHandler(java.util.Collection<java.net.InetAddress> writeEndpoints,
java.util.Collection<java.net.InetAddress> pendingEndpoints,
ConsistencyLevel consistencyLevel,
Keyspace keyspace,
java.lang.Runnable callback,
WriteType writeType) |
WriteResponseHandler(java.net.InetAddress endpoint,
WriteType writeType) |
WriteResponseHandler(java.net.InetAddress endpoint,
WriteType writeType,
java.lang.Runnable callback) |
Modifier and Type | Method and Description |
---|---|
protected int |
ackCount() |
boolean |
isLatencyForSnitch() |
void |
response(MessageIn<T> m)
null message means "response from local write"
|
assureSufficientLiveNodes, get, onFailure, signal, totalBlockFor, totalEndpoints, waitingFor
protected static final org.slf4j.Logger logger
protected volatile int responses
public WriteResponseHandler(java.util.Collection<java.net.InetAddress> writeEndpoints, java.util.Collection<java.net.InetAddress> pendingEndpoints, ConsistencyLevel consistencyLevel, Keyspace keyspace, java.lang.Runnable callback, WriteType writeType)
public WriteResponseHandler(java.net.InetAddress endpoint, WriteType writeType, java.lang.Runnable callback)
public WriteResponseHandler(java.net.InetAddress endpoint, WriteType writeType)
public void response(MessageIn<T> m)
AbstractWriteResponseHandler
response
in interface IAsyncCallback<T>
response
in class AbstractWriteResponseHandler<T>
m
- response received.protected int ackCount()
ackCount
in class AbstractWriteResponseHandler<T>
public boolean isLatencyForSnitch()
Copyright © 2017 The Apache Software Foundation