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