E
- public abstract class ReplicaLayout<E extends Endpoints<E>>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ReplicaLayout.ForRange |
static class |
ReplicaLayout.ForRangeRead |
static interface |
ReplicaLayout.ForToken |
static class |
ReplicaLayout.ForTokenRead |
static class |
ReplicaLayout.ForTokenWrite |
static class |
ReplicaLayout.ForWrite<E extends Endpoints<E>> |
Modifier and Type | Method and Description |
---|---|
E |
all()
All relevant owners of the ring position(s) for this operation, as implied by the current ring layout.
|
static ReplicaLayout.ForTokenWrite |
forTokenWrite(AbstractReplicationStrategy replicationStrategy,
EndpointsForToken natural,
EndpointsForToken pending) |
static ReplicaLayout.ForTokenWrite |
forTokenWriteLiveAndDown(Keyspace keyspace,
Token token)
Gets the 'natural' and 'pending' replicas that own a given token, with no filtering or processing.
|
E |
natural()
The 'natural' owners of the ring position(s), as implied by the current ring layout.
|
AbstractReplicationStrategy |
replicationStrategy() |
java.lang.String |
toString() |
public final E natural()
public final AbstractReplicationStrategy replicationStrategy()
public E all()
public java.lang.String toString()
toString
in class java.lang.Object
public static ReplicaLayout.ForTokenWrite forTokenWriteLiveAndDown(Keyspace keyspace, Token token)
haveWriteConflicts(Endpoints, Endpoints)
public static ReplicaLayout.ForTokenWrite forTokenWrite(AbstractReplicationStrategy replicationStrategy, EndpointsForToken natural, EndpointsForToken pending)
Copyright © 2009-2022 The Apache Software Foundation