Package com.mongodb.selector
Contains classes that determine how to select the server to connect to in order to send commands or queries.
-
Interface Summary Interface Description ServerSelector An interface for selecting a server from a cluster according to some preference. -
Class Summary Class Description CompositeServerSelector A server selector that composes a list of server selectors, and selects the servers by iterating through the list from start to finish, passing the result of the previous into the next, and finally returning the result of the last one.LatencyMinimizingServerSelector Deprecated. PrimaryServerSelector Deprecated. Use eitherReadPreferenceServerSelector
orWritableServerSelector
, depending on your requirementsReadPreferenceServerSelector Deprecated. ServerAddressSelector Deprecated. WritableServerSelector Deprecated.