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