Package org.apache.cassandra.locator
Class ReplicaPlan.SharedForRangeRead
- java.lang.Object
-
- org.apache.cassandra.locator.ReplicaPlan.SharedForRangeRead
-
- All Implemented Interfaces:
ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
- Enclosing class:
- ReplicaPlan<E extends Endpoints<E>>
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 initialisedReplicaPlan.ForRangeReadgetWithContacts(EndpointsForRange newContact)get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised, but replace its 'contacts' with those provided
-
-
-
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>
-
getWithContacts
public ReplicaPlan.ForRangeRead getWithContacts(EndpointsForRange newContact)
Description copied from interface:ReplicaPlan.Sharedget the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised, but replace its 'contacts' with those provided- Specified by:
getWithContactsin interfaceReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
-