Package org.apache.cassandra.locator
Class EndpointsForRange.Builder
java.lang.Object
org.apache.cassandra.locator.AbstractReplicaCollection<E>
org.apache.cassandra.locator.Endpoints<EndpointsForRange>
org.apache.cassandra.locator.EndpointsForRange
org.apache.cassandra.locator.EndpointsForRange.Builder
- All Implemented Interfaces:
Iterable<Replica>,ReplicaCollection<EndpointsForRange>,ReplicaCollection.Builder<EndpointsForRange>
- Enclosing class:
- EndpointsForRange
public static class EndpointsForRange.Builder
extends EndpointsForRange
implements ReplicaCollection.Builder<EndpointsForRange>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.locator.EndpointsForRange
EndpointsForRange.BuilderNested classes/interfaces inherited from class org.apache.cassandra.locator.AbstractReplicaCollection
AbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>Nested classes/interfaces inherited from interface org.apache.cassandra.locator.ReplicaCollection
ReplicaCollection.Builder<C extends ReplicaCollection<C>>Nested classes/interfaces inherited from interface org.apache.cassandra.locator.ReplicaCollection.Builder
ReplicaCollection.Builder.Conflict -
Field Summary
Fields inherited from class org.apache.cassandra.locator.AbstractReplicaCollection
EMPTY_LIST, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) build()snapshot()Methods inherited from class org.apache.cassandra.locator.EndpointsForRange
builder, builder, copyOf, empty, forToken, newBuilder, of, of, rangeMethods inherited from class org.apache.cassandra.locator.Endpoints
append, byEndpoint, concat, contains, contains, endpoint, endpointList, endpoints, keep, select, selfIfPresent, without, withoutSelfMethods inherited from class org.apache.cassandra.locator.AbstractReplicaCollection
anyMatch, asList, collector, count, equals, filter, filter, filterLazily, filterLazily, forEach, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.cassandra.locator.ReplicaCollection
contains, count, endpoints, equals, filter, filter, filterLazily, filterLazily, get, hashCode, isEmpty, iterator, size, sorted, stream, subList, toStringMethods inherited from interface org.apache.cassandra.locator.ReplicaCollection.Builder
add, addAll, addAll
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
add
public EndpointsForRange.Builder add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) - Specified by:
addin interfaceReplicaCollection.Builder<EndpointsForRange>- Parameters:
replica- add this replica to the end of the collectionignoreConflict- conflicts to ignore, seeReplicaCollection.Builder.Conflict
-
snapshot
- Specified by:
snapshotin interfaceReplicaCollection.Builder<EndpointsForRange>- Overrides:
snapshotin classEndpointsForRange- Returns:
- an Immutable clone that assumes this Builder will be modified again
-
build
- Specified by:
buildin interfaceReplicaCollection.Builder<EndpointsForRange>- Returns:
- an Immutable clone that assumes this Builder will never be modified again, so its contents can be reused. This Builder should enforce that it is no longer modified.
-