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