public static class ReplicaPlan.SharedForRangeRead extends java.lang.Object implements ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
| Modifier and Type | Method and Description |
|---|---|
void |
addToContacts(Replica replica)
add the provided replica to this shared plan, by updating the internal reference
|
ReplicaPlan.ForRangeRead |
get()
get the shared replica plan, non-volatile (so maybe stale) but no risk of partially initialised
|
ReplicaPlan.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
|
public void addToContacts(Replica replica)
ReplicaPlan.SharedaddToContacts in interface ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>public ReplicaPlan.ForRangeRead get()
ReplicaPlan.Sharedget in interface ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>public ReplicaPlan.ForRangeRead getWithContacts(EndpointsForRange newContact)
ReplicaPlan.SharedgetWithContacts in interface ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>Copyright © 2009-2020 The Apache Software Foundation