public class ShardedConnection extends AbstractProxyConnection
Connection
implementation for connecting to a sharded
environment via mongos servers.AbstractProxyConnection.ProxiedChangeListener
myConfig
COMMAND_COLLECTION, OPEN_PROP_NAME
Constructor and Description |
---|
ShardedConnection(Connection proxiedConnection,
MongoClientConfiguration config)
Creates a new
ShardedConnection . |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
addPending, addPropertyChangeListener, close, drainPending, flush, getPendingCount, getProxiedConnection, getServerName, isIdle, isOpen, onExceptin, raiseErrors, removePropertyChangeListener, send, send, shutdown, waitForClosed
public ShardedConnection(Connection proxiedConnection, MongoClientConfiguration config)
ShardedConnection
.proxiedConnection
- The connection being proxied.config
- The MongoDB client configuration.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.