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 void
addToContacts(Replica replica)
add the provided replica to this shared plan, by updating the internal referenceReplicaPlan.ForRangeRead
get()
get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialisedReplicaPlan.ForRangeRead
getWithContacts(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.Shared
add the provided replica to this shared plan, by updating the internal reference- Specified by:
addToContacts
in interfaceReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
get
public ReplicaPlan.ForRangeRead get()
Description copied from interface:ReplicaPlan.Shared
get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised- Specified by:
get
in interfaceReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
getWithContacts
public ReplicaPlan.ForRangeRead getWithContacts(EndpointsForRange newContact)
Description copied from interface:ReplicaPlan.Shared
get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised, but replace its 'contacts' with those provided- Specified by:
getWithContacts
in interfaceReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
-