Package org.apache.cassandra.locator
Class ReplicaPlan.SharedForTokenRead
java.lang.Object
org.apache.cassandra.locator.ReplicaPlan.SharedForTokenRead
- All Implemented Interfaces:
Supplier<ReplicaPlan.ForTokenRead>,ReplicaPlan.Shared<EndpointsForToken,ReplicaPlan.ForTokenRead>
- Enclosing interface:
- ReplicaPlan<E extends Endpoints<E>,
P extends ReplicaPlan<E, P>>
public static class ReplicaPlan.SharedForTokenRead
extends Object
implements ReplicaPlan.Shared<EndpointsForToken,ReplicaPlan.ForTokenRead>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToContacts(Replica replica) add the provided replica to this shared plan, by updating the internal referenceget()get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised
-
Method Details
-
addToContacts
Description copied from interface:ReplicaPlan.Sharedadd the provided replica to this shared plan, by updating the internal reference- Specified by:
addToContactsin interfaceReplicaPlan.Shared<EndpointsForToken,ReplicaPlan.ForTokenRead>
-
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<EndpointsForToken,ReplicaPlan.ForTokenRead> - Specified by:
getin interfaceSupplier<ReplicaPlan.ForTokenRead>
-