public static class EndpointsForToken.Builder extends EndpointsForToken implements ReplicaCollection.Builder<EndpointsForToken>
EndpointsForToken.BuilderAbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>ReplicaCollection.Builder.ConflictReplicaCollection.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, tokenappend, byEndpoint, concat, contains, endpointList, endpoints, keep, select, selfIfPresent, without, withoutSelfcollector, count, equals, filter, filter, filterLazily, filterLazily, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAllpublic 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.Conflictpublic EndpointsForToken snapshot()
snapshot in interface ReplicaCollection.Builder<EndpointsForToken>snapshot in class EndpointsForTokenpublic EndpointsForToken build()
build in interface ReplicaCollection.Builder<EndpointsForToken>Copyright © 2009-2022 The Apache Software Foundation