public static class EndpointsForToken.Builder extends EndpointsForToken implements ReplicaCollection.Builder<EndpointsForToken>
EndpointsForToken.Builder
AbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>
ReplicaCollection.Builder.Conflict
ReplicaCollection.Builder<C extends ReplicaCollection<C>>
EMPTY_LIST, list
Constructor and Description |
---|
Builder(Token token) |
Builder(Token token,
int capacity) |
Modifier and Type | Method and Description |
---|---|
EndpointsForToken.Builder |
add(Replica replica,
ReplicaCollection.Builder.Conflict ignoreConflict) |
EndpointsForToken |
build() |
EndpointsForToken |
snapshot() |
builder, builder, copyOf, empty, newBuilder, of, of, snapshot, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, addAll
public Builder(Token token)
public Builder(Token token, int capacity)
public EndpointsForToken.Builder add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict)
add
in interface ReplicaCollection.Builder<EndpointsForToken>
replica
- add this replica to the end of the collectionignoreConflict
- conflicts to ignore, see ReplicaCollection.Builder.Conflict
public EndpointsForToken snapshot()
snapshot
in interface ReplicaCollection.Builder<EndpointsForToken>
snapshot
in class EndpointsForToken
public EndpointsForToken build()
build
in interface ReplicaCollection.Builder<EndpointsForToken>
Copyright © 2009-2022 The Apache Software Foundation