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, startisAlive| 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, totalBlockForprotected 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)
AbstractWriteResponseHandlerresponse in interface IAsyncCallbackresponse in class AbstractWriteResponseHandlerm - response received.protected int ackCount()
ackCount in class AbstractWriteResponseHandlerpublic boolean isLatencyForSnitch()
Copyright © 2015 The Apache Software Foundation