Skip to content

Instantly share code, notes, and snippets.

@undeadcat
Created October 15, 2015 09:52
Show Gist options
  • Save undeadcat/77427b3a5c8582ba3bda to your computer and use it in GitHub Desktop.
Save undeadcat/77427b3a5c8582ba3bda to your computer and use it in GitHub Desktop.
Beautiful Cassandra
public abstract class AbstractReadExecutor
{
protected void makeDataRequests(Iterable<InetAddress> endpoints)
protected void makeDigestRequests(Iterable<InetAddress> endpoints)
private void makeRequests(ReadCommand readCommand, Iterable<InetAddress> endpoints)
public abstract void maybeTryAdditionalReplicas();
public abstract Collection<InetAddress> getContactedReplicas();
public abstract void executeAsync();
public PartitionIterator get() throws ReadFailureException, ReadTimeoutException, DigestMismatchException
public static AbstractReadExecutor getReadExecutor(SinglePartitionReadCommand command, ConsistencyLevel consistencyLevel) throws UnavailableException
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment