public class EndpointsForToken extends Endpoints<EndpointsForToken>
Modifier and Type | Class and Description |
---|---|
static class |
EndpointsForToken.Builder |
AbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>
EMPTY_LIST, list
Modifier and Type | Method and Description |
---|---|
static EndpointsForToken.Builder |
builder(Token token) |
static EndpointsForToken.Builder |
builder(Token token,
int capacity) |
static EndpointsForToken |
copyOf(Token token,
java.util.Collection<Replica> replicas) |
static EndpointsForToken |
empty(Token token) |
Replica |
lookup(InetAddressAndPort endpoint) |
static EndpointsForToken |
natural(AbstractReplicationStrategy replicationStrategy,
Token token) |
static EndpointsForToken |
natural(Keyspace keyspace,
Token token) |
static EndpointsForToken |
natural(TableMetadata table,
Token token) |
EndpointsForToken.Builder |
newBuilder(int initialCapacity)
construct a new Builder of our own type, so that we can concatenate
TODO: this isn't terribly pretty, but we need sometimes to select / merge two Endpoints of unknown type;
|
static EndpointsForToken |
of(Token token,
Replica... replicas) |
static EndpointsForToken |
of(Token token,
Replica replica) |
static EndpointsForToken |
pending(Keyspace keyspace,
Token token) |
static EndpointsForToken |
pending(java.lang.String keyspace,
Token token) |
static EndpointsForToken |
pending(TableMetadata table,
Token token) |
EndpointsForToken |
snapshot() |
protected EndpointsForToken |
snapshot(AbstractReplicaCollection.ReplicaList newList) |
Token |
token() |
append, byEndpoint, concat, contains, contains, endpoint, endpointList, endpoints, keep, select, selfIfPresent, without, withoutSelf
anyMatch, asList, collector, count, equals, filter, filter, filterLazily, filterLazily, forEach, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toString
public Token token()
public EndpointsForToken.Builder newBuilder(int initialCapacity)
AbstractReplicaCollection
newBuilder
in class AbstractReplicaCollection<EndpointsForToken>
public EndpointsForToken snapshot()
snapshot
in class AbstractReplicaCollection<EndpointsForToken>
protected EndpointsForToken snapshot(AbstractReplicaCollection.ReplicaList newList)
public Replica lookup(InetAddressAndPort endpoint)
public static EndpointsForToken.Builder builder(Token token)
public static EndpointsForToken.Builder builder(Token token, int capacity)
public static EndpointsForToken empty(Token token)
public static EndpointsForToken of(Token token, Replica replica)
public static EndpointsForToken of(Token token, Replica... replicas)
public static EndpointsForToken copyOf(Token token, java.util.Collection<Replica> replicas)
public static EndpointsForToken natural(Keyspace keyspace, Token token)
public static EndpointsForToken natural(AbstractReplicationStrategy replicationStrategy, Token token)
public static EndpointsForToken natural(TableMetadata table, Token token)
public static EndpointsForToken pending(TableMetadata table, Token token)
public static EndpointsForToken pending(Keyspace keyspace, Token token)
public static EndpointsForToken pending(java.lang.String keyspace, Token token)
Copyright © 2009-2022 The Apache Software Foundation