Package org.apache.cassandra.locator
Class ReplicaPlan.SharedForRangeRead
- java.lang.Object
-
- org.apache.cassandra.locator.ReplicaPlan.SharedForRangeRead
-
- All Implemented Interfaces:
java.util.function.Supplier<ReplicaPlan.ForRangeRead>,ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
- Enclosing interface:
- ReplicaPlan<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>
public static class ReplicaPlan.SharedForRangeRead extends java.lang.Object implements ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToContacts(Replica replica)add the provided replica to this shared plan, by updating the internal referenceReplicaPlan.ForRangeReadget()get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised
-
-
-
Method Detail
-
addToContacts
public void addToContacts(Replica replica)
Description copied from interface:ReplicaPlan.Sharedadd the provided replica to this shared plan, by updating the internal reference- Specified by:
addToContactsin interfaceReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
get
public ReplicaPlan.ForRangeRead get()
Description copied from interface:ReplicaPlan.Sharedget the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised- Specified by:
getin interfaceReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>- Specified by:
getin interfacejava.util.function.Supplier<ReplicaPlan.ForRangeRead>
-
-