See: Description
Interface | Description |
---|---|
Connection |
Provides the lowest level interface for interacting with a MongoDB server.
|
ConnectionFactory |
Provides an abstraction for constructing a connection.
|
ReconnectStrategy |
ReconnectStrategy provides a common interface for a strategy for reconnecting
to a MongoDB server.
|
SocketConnectionListener |
SocketConnectionListener provides a callback interface for
SocketFactory instances to implement that wish to be notified of
connection completion. |
Users should not need to directly use the classes within this package.
ConnectionFactory
instances are responsible for creating and
managing the state for a set of connections to MongoDB. Connection
provides the basic interface for sending and asynchronously receiving replies from the MongoDB servers.
Connection factories and connections are layered to achieve the desired interaction with the MongoDB servers.
The com.allanbank.mongodb.client.connection.bootstrap
package contains a ConnectionFactory that simply detects the type of MongoDB cluster being used and then delegates all future request to an appropriate delegate for the cluster type.The com.allanbank.mongodb.client.connection.auth
package contains a ConnectionFactory that wraps another connection factory and ensures all requests are properly authenticated prior to being sent to the server.The com.allanbank.mongodb.client.connection.rs
package that knows how to manage connections to a replica-set configuration.The com.allanbank.mongodb.client.connection.sharded
package that knows how to manage connections to a sharded configuration. package that creates a direct socket connection to the MongoDB server. package contains base classes for ConnectionFactory and Connection implementations that delegate to another implementation.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.