public class ReadCallback extends java.lang.Object implements IAsyncCallbackWithFailure<ReadResponse>
| Modifier and Type | Field and Description | 
|---|---|
| protected static org.slf4j.Logger | logger | 
| ResponseResolver | resolver | 
isAlive| Constructor and Description | 
|---|
| ReadCallback(ResponseResolver resolver,
            ConsistencyLevel consistencyLevel,
            int blockfor,
            ReadCommand command,
            Keyspace keyspace,
            java.util.List<java.net.InetAddress> endpoints,
            long queryStartNanoTime) | 
| ReadCallback(ResponseResolver resolver,
            ConsistencyLevel consistencyLevel,
            ReadCommand command,
            java.util.List<java.net.InetAddress> filteredEndpoints,
            long queryStartNanoTime)Constructor when response count has to be calculated and blocked for. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | assureSufficientLiveNodes() | 
| boolean | await(long timePastStart,
     java.util.concurrent.TimeUnit unit) | 
| void | awaitResults() | 
| int | blockFor() | 
| PartitionIterator | get() | 
| int | getReceivedCount() | 
| boolean | isLatencyForSnitch() | 
| void | onFailure(java.net.InetAddress from,
         RequestFailureReason failureReason)Called when there is an exception on the remote node or timeout happens | 
| void | response(MessageIn<ReadResponse> message) | 
| void | response(ReadResponse result) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsBackPressureprotected static final org.slf4j.Logger logger
public final ResponseResolver resolver
public ReadCallback(ResponseResolver resolver, ConsistencyLevel consistencyLevel, ReadCommand command, java.util.List<java.net.InetAddress> filteredEndpoints, long queryStartNanoTime)
public ReadCallback(ResponseResolver resolver, ConsistencyLevel consistencyLevel, int blockfor, ReadCommand command, Keyspace keyspace, java.util.List<java.net.InetAddress> endpoints, long queryStartNanoTime)
public boolean await(long timePastStart,
                     java.util.concurrent.TimeUnit unit)
public void awaitResults()
                  throws ReadFailureException,
                         ReadTimeoutException
public PartitionIterator get() throws ReadFailureException, ReadTimeoutException, DigestMismatchException
public int blockFor()
public void response(MessageIn<ReadResponse> message)
response in interface IAsyncCallback<ReadResponse>message - response received.public int getReceivedCount()
public void response(ReadResponse result)
public void assureSufficientLiveNodes()
                               throws UnavailableException
UnavailableExceptionpublic boolean isLatencyForSnitch()
isLatencyForSnitch in interface IAsyncCallback<ReadResponse>public void onFailure(java.net.InetAddress from,
                      RequestFailureReason failureReason)
IAsyncCallbackWithFailureonFailure in interface IAsyncCallbackWithFailure<ReadResponse>Copyright © 2018 The Apache Software Foundation