public class BatchlogResponseHandler<T> extends AbstractWriteResponseHandler<T>
Modifier and Type | Class and Description |
---|---|
static class |
BatchlogResponseHandler.BatchlogCleanup |
static interface |
BatchlogResponseHandler.BatchlogCleanupCallback |
Modifier and Type | Field and Description |
---|---|
protected int |
requiredBeforeFinish |
callback, consistencyLevel, keyspace, logger, naturalEndpoints, pendingEndpoints, start, writeType
isAlive
Constructor and Description |
---|
BatchlogResponseHandler(AbstractWriteResponseHandler<T> wrapped,
int requiredBeforeFinish,
BatchlogResponseHandler.BatchlogCleanup cleanup) |
Modifier and Type | Method and Description |
---|---|
protected int |
ackCount() |
void |
assureSufficientLiveNodes() |
void |
get() |
boolean |
isLatencyForSnitch() |
void |
onFailure(java.net.InetAddress from)
Called when there is an exception on the remote node or timeout happens
|
void |
response(MessageIn<T> msg)
null message means "response from local write"
|
protected void |
signal() |
protected int |
totalBlockFor() |
protected int |
totalEndpoints() |
protected boolean |
waitingFor(java.net.InetAddress from) |
public BatchlogResponseHandler(AbstractWriteResponseHandler<T> wrapped, int requiredBeforeFinish, BatchlogResponseHandler.BatchlogCleanup cleanup)
protected int ackCount()
ackCount
in class AbstractWriteResponseHandler<T>
public void response(MessageIn<T> msg)
AbstractWriteResponseHandler
response
in interface IAsyncCallback<T>
response
in class AbstractWriteResponseHandler<T>
msg
- response received.public boolean isLatencyForSnitch()
public void onFailure(java.net.InetAddress from)
IAsyncCallbackWithFailure
onFailure
in interface IAsyncCallbackWithFailure<T>
onFailure
in class AbstractWriteResponseHandler<T>
public void assureSufficientLiveNodes()
assureSufficientLiveNodes
in class AbstractWriteResponseHandler<T>
public void get() throws WriteTimeoutException, WriteFailureException
get
in class AbstractWriteResponseHandler<T>
WriteTimeoutException
WriteFailureException
protected int totalBlockFor()
totalBlockFor
in class AbstractWriteResponseHandler<T>
protected int totalEndpoints()
totalEndpoints
in class AbstractWriteResponseHandler<T>
protected boolean waitingFor(java.net.InetAddress from)
waitingFor
in class AbstractWriteResponseHandler<T>
protected void signal()
signal
in class AbstractWriteResponseHandler<T>
Copyright © 2017 The Apache Software Foundation