Package com.mongodb.selector
Class LatencyMinimizingServerSelector
java.lang.Object
com.mongodb.selector.LatencyMinimizingServerSelector
- All Implemented Interfaces:
ServerSelector
Deprecated.
A server selector that accepts only servers within the given ping-time latency difference from the faster of the servers.
- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionLatencyMinimizingServerSelector
(long acceptableLatencyDifference, TimeUnit timeUnit) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.long
getAcceptableLatencyDifference
(TimeUnit timeUnit) Deprecated.Gets the acceptable latency difference.int
hashCode()
Deprecated.select
(ClusterDescription clusterDescription) Deprecated.Select a list of server descriptions from the given cluster description according to some criteria.toString()
Deprecated.
-
Constructor Details
-
LatencyMinimizingServerSelector
Deprecated.- Parameters:
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 acceptableLatencyDifference
-
-
Method Details
-
getAcceptableLatencyDifference
Deprecated.Gets the acceptable latency difference.- Parameters:
timeUnit
- the time unit to get it in.- Returns:
- the acceptable latency difference in the specified time unit
-
select
Deprecated.Description copied from interface:ServerSelector
Select a list of server descriptions from the given cluster description according to some criteria.- Specified by:
select
in interfaceServerSelector
- Parameters:
clusterDescription
- the cluster of servers to select from- Returns:
- a non-null list of ServerDescriptions that meet the requirements of this ServerSelector. This may be empty.
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-