| Interface | Description |
|---|---|
| ChangeListener<T> |
Listener for ChangeEvents - classes that implement this will be informed if classes of type
T are changed. |
| Cluster |
Represents a cluster of MongoDB servers.
|
| ClusterableServer |
A logical connection to a MongoDB server that supports clustering along with other servers.
|
| ClusterableServerFactory | |
| ClusterDescription.Predicate | |
| ClusterListener |
A listener for cluster-related events.
|
| ConcurrentPool.ItemFactory<T> |
Factory for creating and closing pooled items.
|
| Connection | |
| ConnectionFactory | |
| ConnectionPoolListener |
A listener for connection pool-related events.
|
| ConnectionPoolStatisticsMBean |
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
|
| Cursor |
Interface for providing consistent behaviour between different Cursor implementations.
|
| DBCallback |
The DB callback interface.
|
| DBCallbackFactory |
Factory for creating concrete implementations of DBCallback.
|
| DBConnector | Deprecated
This class is NOT part of the public API.
|
| DBDecoder |
An interface for decoders of BSON into instances of DBObject that belong to a DBCollection.
|
| DBDecoderFactory |
Creates concrete DBDecoder instances.
|
| DBEncoder |
An interface for encoders of BSONObject to BSON.
|
| DBEncoderFactory |
Creates concrete DBEncoder instances.
|
| DBObject |
This interface adds some specific behaviour to
BSONObject for MongoDB documents. |
| DBPort.Operation<T> | |
| Deque<E> |
A linear collection that supports element insertion and removal at
both ends.
|
| Java5MongoConnectionPoolMBean | Deprecated
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
| MongoConnectionPoolMXBean | Deprecated
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
| Server |
A logical connection to a MongoDB server.
|
| ServerSelector |
| Class | Description |
|---|---|
| AcknowledgedBulkWriteResult | |
| AggregationOptions |
The options to apply to an aggregate operation.
|
| AggregationOptions.Builder |
Builder for creating
AggregationOptions. |
| AggregationOutput |
Container for the result of aggregation operation.
|
| AnyServerSelector | |
| BaseCluster | |
| BaseCluster.WrappedServer | |
| BaseWriteCommandMessage | |
| BasicDBList |
An implementation of List that reflects the way BSON lists work.
|
| BasicDBObject |
A basic implementation of BSON object that is MongoDB specific.
|
| BasicDBObjectBuilder |
Utility for building complex objects.
|
| BSONBinaryWriter | |
| BSONBinaryWriterSettings | |
| BSONWriter | |
| BSONWriterSettings | |
| BulkUpdateRequestBuilder |
A builder for a single update request.
|
| BulkWriteBatchCombiner | |
| BulkWriteError |
Represents an error for an item included in a bulk write operation, e.g.
|
| BulkWriteOperation |
A bulk write operation.
|
| BulkWriteRequestBuilder |
A builder for a single write request.
|
| BulkWriteResult |
The result of a successful bulk write operation.
|
| BulkWriteUpsert |
Represents an upsert request in a bulk write operation that resulted in an insert.
|
| Bytes |
Class that hold definitions of the wire protocol
|
| Bytes.OptionHolder | |
| ChangeEvent<T> | |
| ClusterDescription |
Immutable snapshot state of a cluster.
|
| ClusterDescriptionChangedEvent |
An event signifying that the cluster description has changed.
|
| ClusterEvent |
A cluster-related event.
|
| ClusterListenerAdapter | |
| Clusters |
A factory for cluster implementations.
|
| ClusterSettings |
Settings for the cluster.
|
| ClusterSettings.Builder |
A builder for the cluster settings.
|
| CommandResult |
A simple wrapper to hold the result of a command.
|
| CompositeServerSelector | |
| ConcurrentLinkedDeque<E> |
A concurrent linked-list implementation of a
Deque
(double-ended queue). |
| ConcurrentLinkedDeque.Node<E> |
Linked Nodes.
|
| ConcurrentPool<T> | |
| ConnectionEvent |
A connection-related event.
|
| ConnectionPoolEvent |
A connection pool-related event.
|
| ConnectionPoolListenerAdapter |
An adapter for connection pool listener implementations, for clients that want to listen for a subset of connection pool events.
|
| ConnectionPoolOpenedEvent |
An event signifying the opening of a connection pool.
|
| ConnectionPoolSettings | |
| ConnectionPoolSettings.Builder | |
| ConnectionPoolStatistics |
An MBean implementation for connection pool statistics.
|
| ConnectionPoolWaitQueueEvent |
An event related to the connection pool's wait queue..
|
| DB |
A thread-safe client view of a logical database in a MongoDB cluster.
|
| DBAddress |
Represents a database address, which includes the properties of ServerAddress (host and port) and adds a database name.
|
| DBApiLayer | Deprecated
This class is NOT part of the public API.
|
| DBApiLayer.DeadCursor | |
| DBCollection |
This class provides a skeleton implementation of a database collection.
|
| DBCollectionImpl | |
| DBCursor |
An iterator over database results.
|
| DBPointer | Deprecated
BSON type DBPointer(0x0c) is deprecated.
|
| DBPort | Deprecated
This class is NOT a part of public API and will be dropped in 3.x versions.
|
| DBPortFactory | |
| DBPortPool | Deprecated
This class is NOT a part of public API and will be dropped in 3.x versions.
|
| DBRef |
Extends DBRefBase to understand a BSONObject representation of a reference.
|
| DBRefBase | Deprecated
Use
DBRef class exclusively |
| DBTCPConnector | Deprecated
This class is NOT part of the public API.
|
| DBTCPConnector.PinnedRequestStatus | |
| DefaultClusterableServerFactory | |
| DefaultDBCallback |
This class overrides BasicBSONCallback to implement some extra features specific to the Database.
|
| DefaultDBCallback.DefaultFactory | |
| DefaultDBDecoder |
An implementation of DBDecoder
|
| DefaultDBDecoder.DefaultFactory | |
| DefaultDBEncoder |
The default BSON encoder for BSONObject instances.
|
| DefaultDBEncoder.DefaultFactory | |
| DefaultServer | |
| DeleteCommandMessage | |
| GroupCommand |
This class groups the argument for a group operation and can build the underlying command object
|
| IndexMap |
Efficiently maps each integer in a set to another integer in a set, useful for merging bulk write errors when a bulk write must be
split into multiple batches.
|
| IndexMap.HashBased | |
| IndexMap.RangeBased | |
| InsertCommandMessage | |
| InsertOptions |
Options related to insertion of documents into MongoDB.
|
| InsertRequest | |
| InUseConnectionBean | Deprecated
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
| JMXConnectionPoolListener |
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
|
| JMXConnectionPoolListener.ClusterIdServerAddressPair | |
| LatencyMinimizingServerSelector | |
| LazyDBCallback |
A
BSONCallback for the creation of LazyDBObject and LazyDBList instances. |
| LazyDBDecoder |
A decoder for
LazyDBObject instances. |
| LazyDBDecoder.LazyDBDecoderFactory | |
| LazyDBEncoder |
Encoder that only knows how to encode BSONObject instances of type LazyDBObject.
|
| LazyDBList |
A
LazyDBObject representing a BSON array. |
| LazyDBObject |
An immutable
DBObject backed by a byte buffer that lazily provides keys and values on request. |
| LazyWriteableDBCallback | Deprecated
This class will be removed in a future release.
|
| LazyWriteableDBDecoder | Deprecated
This class will be removed in a future release.
|
| LazyWriteableDBDecoder.LazyDBDecoderFactory | |
| LazyWriteableDBObject | Deprecated
This class will be removed in a future release.
|
| Loggers | |
| MapReduceCommand |
This class groups the argument for a map/reduce operation and can build the underlying command object
|
| MapReduceOutput |
Represents the result of a map/reduce operation.
|
| MessageSettings | |
| MessageSettings.Builder | |
| ModifyRequest | |
| Mongo |
A database connection with internal connection pooling.
|
| Mongo.Holder |
Mongo.Holder can be used as a static place to hold several instances of Mongo.
|
| MongoAuthority |
This class represents the authority to which this client is connecting.
|
| MongoClient |
A MongoDB client with internal connection pooling.
|
| MongoClientOptions |
Various settings to control the behavior of a
MongoClient. |
| MongoClientOptions.Builder |
A builder for MongoClientOptions so that MongoClientOptions can be immutable, and to support easier construction through chaining.
|
| MongoClientURI |
Represents a URI
which can be used to create a MongoClient instance.
|
| MongoCredential |
Represents credentials to authenticate to a mongo server, as well as the source of the credentials and
the authentication mechanism to use.
|
| MongoCredentialsStore |
An effectively immutable store of credentials to mongo servers.
|
| MongoNamespace | |
| MongoOptions | Deprecated
Replaced by
MongoClientOptions. |
| MongosHAServerSelector | |
| MongoURI |
This class has been replaced by
MongoClientURI, and the documentation has been moved to that class. |
| MultiServerCluster |
This class needs to be final because we are leaking a reference to "this" from the constructor
|
| MultiServerCluster.ServerTuple | |
| NativeAuthenticationHelper | |
| NoOpClusterListener | |
| NoOpConnectionPoolListener | |
| OutMessage | |
| ParallelScanOptions |
The options to use for a parallel collection scan.
|
| ParallelScanOptions.Builder |
A builder for the options
|
| PooledConnectionProvider | |
| QueryBuilder |
Utility for creating DBObject queries
|
| QueryBuilder.NullObject | |
| QueryOpBuilder |
Utility for constructing Query operation command with query, orderby, hint, explain, snapshot.
|
| QueryOperators |
MongoDB keywords for various query operations.
|
| QueryResultIterator | |
| QueryResultIterator.OptionalFinalizer | |
| RawDBObject | Deprecated
This class is NOT a part of public API and will be dropped in 3.x versions.
|
| ReadPreference |
An abstract class that represents preferred replica set members to which a query or command can be sent.
|
| ReadPreference.PrimaryReadPreference |
Preference to read from primary only.
|
| ReadPreference.TaggedReadPreference | Deprecated
As of release 2.9, replaced by
ReadPreference.secondaryPreferred(DBObject, DBObject...) |
| ReadPreferenceServerSelector | |
| ReflectionDBObject |
This class enables to map simple Class fields to a BSON object fields
|
| ReflectionDBObject.FieldInfo | |
| ReflectionDBObject.JavaWrapper |
Represents a wrapper around the DBObject to interface with the Class fields
|
| Remove | |
| RemoveRequest | |
| ReplaceRequest | |
| ReplicaSetStatus |
Keeps replica set status.
|
| RequestMessage | |
| Response | |
| Response.MyInputStream | |
| ServerAddress |
Represents the location of a Mongo server - i.e.
|
| ServerAddressSelector | |
| ServerDescription |
Immutable snapshot state of a server.
|
| ServerDescription.Builder | |
| ServerError | Deprecated
This is an internal class, and will likely be removed in the next major release.
|
| ServerMonitor | |
| ServerSettings | |
| ServerSettings.Builder | |
| ServerVersion |
Holds an array of three integers representing the server version, e.g.
|
| SingleServerCluster |
This class needs to be final because we are leaking a reference to "this" from the constructor
|
| SocketSettings | |
| SocketSettings.Builder | |
| StringUtils | |
| Tag |
A replica set tag.
|
| TaggableReadPreference |
Abstract class for all preference which can be combined with tags
|
| TaggableReadPreference.NearestReadPreference |
Read from nearest node respective of tags.
|
| TaggableReadPreference.PrimaryPreferredReadPreference |
Read from primary if available, otherwise a secondary.
|
| TaggableReadPreference.SecondaryPreferredReadPreference |
Read from secondary if available, otherwise from primary, irrespective of tags.
|
| TaggableReadPreference.SecondaryReadPreference |
Read from secondary
|
| TagSet |
An immutable set of tags, used to select members of a replica set to use for read operations.
|
| UnacknowledgedBulkWriteResult | |
| Update | |
| UpdateCommandMessage | |
| UpdateRequest | |
| WriteCommandResultHelper | |
| WriteConcern |
Controls the acknowledgment of write operations with various options.
|
| WriteConcern.Majority |
A write concern that blocks acknowledgement of a write operation until a majority of replica set members have applied it.
|
| WriteConcernError |
An error representing a failure by the server to apply the requested write concern to the bulk operation.
|
| WriteRequest | |
| WriteResult |
This class lets you access the results of the previous write.
|
| Enum | Description |
|---|---|
| AggregationOptions.OutputMode |
Enumeration to define where the results of the aggregation will be output.
|
| BSONBinarySubType | |
| BSONContextType | |
| BSONType | |
| BSONWriter.State | |
| ClusterConnectionMode |
The cluster connection mode.
|
| ClusterType |
An enumeration of all possible cluster types.
|
| DBCursor.CursorType |
Types of cursors: iterator or array.
|
| MapReduceCommand.OutputType |
Represents the different options available for outputting the results of a map-reduce operation.
|
| MongoAuthority.Type |
Enumeration of the connection types.
|
| OutMessage.OpCode | |
| RequestMessage.OpCode | |
| ServerConnectionState | |
| ServerType |
The type of the server.
|
| WriteRequest.Type |
| Exception | Description |
|---|---|
| BulkWriteException |
An exception that represents all errors associated with a bulk write operation.
|
| CommandFailureException | Deprecated
Use
instead. |
| DBPortPool.ConnectionWaitTimeOut | Deprecated
This class will be dropped in 3.x versions.
|
| DBPortPool.NoMoreConnection | Deprecated
This class will be dropped in 3.x versions.
|
| DBPortPool.SemaphoresOut | Deprecated
This class will be dropped in 3.x versions.
|
| DuplicateKeyException |
Subclass of
WriteConcernException representing a duplicate key exception. |
| MongoClientException |
A base class for exceptions indicating a failure condition within the driver.
|
| MongoCommandException |
An exception indicating that a command sent to a MongoDB server returned a failure.
|
| MongoCursorNotFoundException |
Subclass of
MongoException representing a cursor-not-found exception. |
| MongoException |
Top level Exception for all Exceptions, server-side or client-side, that come from the driver.
|
| MongoException.CursorNotFound | Deprecated
This class will be dropped in 3.x versions.
|
| MongoException.DuplicateKey | Deprecated
This class will be dropped in 3.x versions.
|
| MongoException.Network | Deprecated
This class will be dropped in 3.x versions.
|
| MongoExecutionTimeoutException |
Exception indicating that the execution of the current operation timed outas a result of the maximum operation time being exceeded.
|
| MongoIncompatibleDriverException |
An exception indicating that this version of the driver is not compatible with at least one of the servers that it is currently
connected to.
|
| MongoInternalException |
A Mongo exception internal to the driver, not carrying any error code.
|
| MongoInterruptedException |
A non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt.
|
| MongoServerSelectionException | Deprecated
No longer thrown.
|
| MongoSocketException |
Subclass of
MongoException representing a network-related exception. |
| MongoTimeoutException |
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
|
| MongoWaitQueueFullException |
An exception indicating that the queue for waiting for a pooled connection is full.
|
| QueryBuilder.QueryBuilderException | |
| UnacknowledgedWriteException | Deprecated
Catch
instead |
| WriteConcernException |
An exception representing an error reported due to a write failure.
|
Main package with core files. @see Mongo is the main entry point.