public final class CompositeServerSelector extends Object implements ServerSelector
Constructor and Description |
---|
CompositeServerSelector(List<? extends ServerSelector> serverSelectors)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
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<ServerDescription> select(ClusterDescription clusterDescription)
ServerSelector
select
in interface ServerSelector
clusterDescription
- the cluster of servers to select from