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.Shared
addToContacts
in interface ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
public ReplicaPlan.ForRangeRead get()
ReplicaPlan.Shared
get
in interface ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
public ReplicaPlan.ForRangeRead getWithContacts(EndpointsForRange newContact)
ReplicaPlan.Shared
getWithContacts
in interface ReplicaPlan.Shared<EndpointsForRange,ReplicaPlan.ForRangeRead>
Copyright © 2009-2021 The Apache Software Foundation