public class EndpointsForRange extends Endpoints<EndpointsForRange>
Modifier and Type | Class and Description |
---|---|
static class |
EndpointsForRange.Builder |
AbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>
EMPTY_LIST, list
Modifier and Type | Method and Description |
---|---|
static EndpointsForRange.Builder |
builder(Range<Token> range) |
static EndpointsForRange.Builder |
builder(Range<Token> range,
int capacity) |
static EndpointsForRange |
copyOf(java.util.Collection<Replica> replicas) |
static EndpointsForRange |
empty(Range<Token> range) |
EndpointsForToken |
forToken(Token token) |
EndpointsForRange.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 EndpointsForRange |
of(Replica... replicas) |
static EndpointsForRange |
of(Replica replica) |
Range<Token> |
range() |
EndpointsForRange |
snapshot() |
append, byEndpoint, concat, contains, endpointList, endpoints, keep, select, selfIfPresent, without, withoutSelf
collector, count, equals, filter, filter, filterLazily, filterLazily, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toString
public EndpointsForRange.Builder newBuilder(int initialCapacity)
AbstractReplicaCollection
newBuilder
in class AbstractReplicaCollection<EndpointsForRange>
public EndpointsForToken forToken(Token token)
public EndpointsForRange snapshot()
snapshot
in class AbstractReplicaCollection<EndpointsForRange>
public static EndpointsForRange.Builder builder(Range<Token> range)
public static EndpointsForRange.Builder builder(Range<Token> range, int capacity)
public static EndpointsForRange empty(Range<Token> range)
public static EndpointsForRange of(Replica replica)
public static EndpointsForRange of(Replica... replicas)
public static EndpointsForRange copyOf(java.util.Collection<Replica> replicas)
Copyright © 2009- The Apache Software Foundation