ServerSelector
public final class CompositeServerSelector extends Object implements ServerSelector
Constructor | Description |
---|---|
CompositeServerSelector(List<? extends ServerSelector> serverSelectors) |
Constructs a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
List<ServerSelector> |
getServerSelectors() |
|
int |
hashCode() |
|
List<ServerDescription> |
select(ClusterDescription clusterDescription) |
Select a list of server descriptions from the given cluster description according to some criteria.
|
String |
toString() |
public CompositeServerSelector(List<? extends ServerSelector> serverSelectors)
serverSelectors
- the list of composed server selectorspublic List<ServerSelector> getServerSelectors()
public List<ServerDescription> select(ClusterDescription clusterDescription)
ServerSelector
select
in interface ServerSelector
clusterDescription
- the cluster of servers to select from