E
- The concrete type of Endpoints, that will be returned by the modifying methodspublic abstract class Endpoints<E extends Endpoints<E>> extends AbstractReplicaCollection<E>
AbstractReplicaCollection.ReplicaList, AbstractReplicaCollection.ReplicaMap<K>
ReplicaCollection.Builder<C extends ReplicaCollection<C>>
EMPTY_LIST, list
Modifier and Type | Method and Description |
---|---|
static <E extends Endpoints<E>> |
append(E replicas,
Replica extraReplica) |
java.util.Map<InetAddressAndPort,Replica> |
byEndpoint() |
static <E extends Endpoints<E>> |
concat(E natural,
E pending)
Care must be taken to ensure no conflicting ranges occur in pending and natural.
|
boolean |
contains(Replica replica) |
java.util.List<InetAddressAndPort> |
endpointList() |
java.util.Set<InetAddressAndPort> |
endpoints() |
E |
keep(java.util.Set<InetAddressAndPort> keep) |
E |
select(java.lang.Iterable<InetAddressAndPort> endpoints,
boolean ignoreMissing) |
Replica |
selfIfPresent() |
E |
without(java.util.Set<InetAddressAndPort> remove) |
E |
withoutSelf() |
collector, count, equals, filter, filter, filterLazily, filterLazily, get, hashCode, isEmpty, iterator, newBuilder, size, snapshot, sorted, stream, subList, toString
public java.util.Set<InetAddressAndPort> endpoints()
public java.util.List<InetAddressAndPort> endpointList()
public java.util.Map<InetAddressAndPort,Replica> byEndpoint()
public boolean contains(Replica replica)
public E withoutSelf()
public Replica selfIfPresent()
public E without(java.util.Set<InetAddressAndPort> remove)
public E keep(java.util.Set<InetAddressAndPort> keep)
public E select(java.lang.Iterable<InetAddressAndPort> endpoints, boolean ignoreMissing)
public static <E extends Endpoints<E>> E concat(E natural, E pending)
ReplicaLayout.haveWriteConflicts(E, E)
can be used to detect and resolve any issuesCopyright © 2009-2021 The Apache Software Foundation