Package org.apache.cassandra.locator
Class ReplicaPlan.SharedForTokenRead
- java.lang.Object
-
- org.apache.cassandra.locator.ReplicaPlan.SharedForTokenRead
-
- All Implemented Interfaces:
ReplicaPlan.Shared<EndpointsForToken,ReplicaPlan.ForTokenRead>
- Enclosing class:
- ReplicaPlan<E extends Endpoints<E>>
public static class ReplicaPlan.SharedForTokenRead extends java.lang.Object implements ReplicaPlan.Shared<EndpointsForToken,ReplicaPlan.ForTokenRead>
-
-
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.ForTokenRead
get()
get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialisedReplicaPlan.ForTokenRead
getWithContacts(EndpointsForToken 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<EndpointsForToken,ReplicaPlan.ForTokenRead>
-
get
public ReplicaPlan.ForTokenRead 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<EndpointsForToken,ReplicaPlan.ForTokenRead>
-
getWithContacts
public ReplicaPlan.ForTokenRead getWithContacts(EndpointsForToken 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<EndpointsForToken,ReplicaPlan.ForTokenRead>
-
-