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) |
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) |
EndpointsForToken |
snapshot() |
protected EndpointsForToken |
snapshot(AbstractReplicaCollection.ReplicaList newList) |
Token |
token() |
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 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 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)
Copyright © 2009-2021 The Apache Software Foundation