@Deprecated public class LatencyMinimizingServerSelector extends java.lang.Object implements ServerSelector
| Constructor and Description |
|---|
LatencyMinimizingServerSelector(long acceptableLatencyDifference,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Deprecated.
|
long |
getAcceptableLatencyDifference(java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Gets the acceptable latency difference.
|
int |
hashCode()
Deprecated.
|
java.util.List<ServerDescription> |
select(ClusterDescription clusterDescription)
Deprecated.
Select a list of server descriptions from the given cluster description according to some criteria.
|
java.lang.String |
toString()
Deprecated.
|
public LatencyMinimizingServerSelector(long acceptableLatencyDifference,
java.util.concurrent.TimeUnit timeUnit)
acceptableLatencyDifference - the maximum difference in ping-time latency between the fastest ping time and the slowest of
the chosen serverstimeUnit - the time unit of the acceptableLatencyDifferencepublic long getAcceptableLatencyDifference(java.util.concurrent.TimeUnit timeUnit)
timeUnit - the time unit to get it in.public java.util.List<ServerDescription> select(ClusterDescription clusterDescription)
ServerSelectorselect in interface ServerSelectorclusterDescription - the cluster of servers to select frompublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved