Package org.apache.cassandra.locator
Class ReplicaPlan.AbstractForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>
- java.lang.Object
-
- org.apache.cassandra.locator.ReplicaPlan.AbstractReplicaPlan<E,P>
-
- org.apache.cassandra.locator.ReplicaPlan.AbstractForRead<E,P>
-
- All Implemented Interfaces:
ReplicaPlan<E,P>
,ReplicaPlan.ForRead<E,P>
- Direct Known Subclasses:
ReplicaPlan.ForRangeRead
,ReplicaPlan.ForTokenRead
- Enclosing interface:
- ReplicaPlan<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>
public abstract static class ReplicaPlan.AbstractForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>> extends ReplicaPlan.AbstractReplicaPlan<E,P> implements ReplicaPlan.ForRead<E,P>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.locator.ReplicaPlan
ReplicaPlan.AbstractForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>, ReplicaPlan.AbstractReplicaPlan<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>, ReplicaPlan.ForPaxosWrite, ReplicaPlan.ForRangeRead, ReplicaPlan.ForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>, ReplicaPlan.ForTokenRead, ReplicaPlan.ForWrite, ReplicaPlan.Shared<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>, ReplicaPlan.SharedForRangeRead, ReplicaPlan.SharedForTokenRead
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.locator.ReplicaPlan.AbstractReplicaPlan
consistencyLevel, keyspace, replicationStrategy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Replica
firstUncontactedCandidate(java.util.function.Predicate<Replica> extraPredicate)
Replica
lookup(InetAddressAndPort endpoint)
E
readCandidates()
int
readQuorum()
java.lang.String
toString()
-
Methods inherited from class org.apache.cassandra.locator.ReplicaPlan.AbstractReplicaPlan
consistencyLevel, contacts, keyspace, replicationStrategy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.locator.ReplicaPlan
consistencyLevel, contacts, keyspace, replicationStrategy, withContacts
-
-
-
-
Method Detail
-
readQuorum
public int readQuorum()
- Specified by:
readQuorum
in interfaceReplicaPlan.ForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>
-
readCandidates
public E readCandidates()
- Specified by:
readCandidates
in interfaceReplicaPlan.ForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>
-
firstUncontactedCandidate
public Replica firstUncontactedCandidate(java.util.function.Predicate<Replica> extraPredicate)
- Specified by:
firstUncontactedCandidate
in interfaceReplicaPlan.ForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>
-
lookup
public Replica lookup(InetAddressAndPort endpoint)
- Specified by:
lookup
in interfaceReplicaPlan<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-