public class WriteResponseHandler extends AbstractWriteResponseHandler
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected java.util.concurrent.atomic.AtomicInteger |
responses |
callback, consistencyLevel, keyspace, naturalEndpoints, pendingEndpoints, start
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 m)
null message means "response from local write"
|
assureSufficientLiveNodes, get, signal, totalBlockFor
protected static final org.slf4j.Logger logger
protected final java.util.concurrent.atomic.AtomicInteger 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 m)
AbstractWriteResponseHandler
response
in interface IAsyncCallback
response
in class AbstractWriteResponseHandler
m
- response received.protected int ackCount()
ackCount
in class AbstractWriteResponseHandler
public boolean isLatencyForSnitch()
Copyright © 2013 The Apache Software Foundation