Package | Description |
---|---|
com.allanbank.mongodb.client.connection |
Provides interfaces for managing connections to different MongoDB server configurations.
|
com.allanbank.mongodb.client.connection.sharded |
Support for connections to Sharded Configurations.
|
com.allanbank.mongodb.client.state |
Support for tracking the state of a set of MongoDB servers.
|
Modifier and Type | Method and Description |
---|---|
void |
ReconnectStrategy.setSelector(ServerSelector selector)
Sets the selector to be used by the reconnection strategy.
|
Modifier and Type | Field and Description |
---|---|
protected ServerSelector |
ShardedConnectionFactory.mySelector
The selector for the mongos instance to use.
|
Modifier and Type | Method and Description |
---|---|
protected ServerSelector |
ShardedConnectionFactory.createSelector()
Creates a
ServerSelector object to select the (presumed) optimal
server to handle a request. |
Constructor and Description |
---|
ShardedConnection(Connection proxiedConnection,
Server server,
Cluster cluster,
ServerSelector selector,
ProxiedConnectionFactory factory,
MongoClientConfiguration config)
Creates a new
ShardedConnection . |
Modifier and Type | Class and Description |
---|---|
class |
LatencyServerSelector
LatencyServerSelector provides an implementation of the server selector that
uses the server latencies to determine the server to select.
|
Modifier and Type | Field and Description |
---|---|
protected ServerSelector |
AbstractReconnectStrategy.mySelector
The selector for which server to connect to.
|
Modifier and Type | Method and Description |
---|---|
ServerSelector |
AbstractReconnectStrategy.getSelector()
Returns the selector for which server to connect to.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractReconnectStrategy.setSelector(ServerSelector selector)
Sets the selector to be used by the reconnection strategy.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.