Package org.apache.cassandra.locator
Class ReplicaPlan.SharedForTokenRead
- java.lang.Object
-
- org.apache.cassandra.locator.ReplicaPlan.SharedForTokenRead
-
- All Implemented Interfaces:
java.util.function.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 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 initialised
-
-
-
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>
- Specified by:
get
in interfacejava.util.function.Supplier<ReplicaPlan.ForTokenRead>
-
-