public abstract class AbstractReadExecutor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractReadExecutor.NeverSpeculatingReadExecutor |
Modifier and Type | Field and Description |
---|---|
protected ReadCommand |
command |
protected ReadCallback |
handler |
protected java.util.List<java.net.InetAddress> |
targetReplicas |
protected TraceState |
traceState |
Modifier and Type | Method and Description |
---|---|
abstract void |
executeAsync()
send the initial set of requests
|
PartitionIterator |
get()
wait for an answer.
|
abstract java.util.Collection<java.net.InetAddress> |
getContactedReplicas()
Get the replicas involved in the [finished] request.
|
static AbstractReadExecutor |
getReadExecutor(SinglePartitionReadCommand command,
ConsistencyLevel consistencyLevel) |
protected void |
makeDataRequests(java.lang.Iterable<java.net.InetAddress> endpoints) |
protected void |
makeDigestRequests(java.lang.Iterable<java.net.InetAddress> endpoints) |
abstract void |
maybeTryAdditionalReplicas()
Perform additional requests if it looks like the original will time out.
|
protected final ReadCommand command
protected final java.util.List<java.net.InetAddress> targetReplicas
protected final ReadCallback handler
protected final TraceState traceState
protected void makeDataRequests(java.lang.Iterable<java.net.InetAddress> endpoints)
protected void makeDigestRequests(java.lang.Iterable<java.net.InetAddress> endpoints)
public abstract void maybeTryAdditionalReplicas()
public abstract java.util.Collection<java.net.InetAddress> getContactedReplicas()
public abstract void executeAsync()
public PartitionIterator get() throws ReadFailureException, ReadTimeoutException, DigestMismatchException
public static AbstractReadExecutor getReadExecutor(SinglePartitionReadCommand command, ConsistencyLevel consistencyLevel) throws UnavailableException
UnavailableException
Copyright © 2017 The Apache Software Foundation