The core mongodb package
Interface Summary Interface Description Block<T>An interface for applying some logic against the given parameter. DBObjectThis interface adds some specific behaviour to
BSONObjectfor MongoDB documents.
Function<T,R>Apply a function to the input object yielding an appropriate result object.
Class Summary Class Description AutoEncryptionSettingsThe client-side automatic encryption settings. AutoEncryptionSettings.BuilderA builder for
AutoEncryptionSettingscan be immutable, and to support easier construction through chaining.
BasicDBListAn implementation of List that reflects the way BSON lists work. BasicDBObjectA basic implementation of BSON object that is MongoDB specific. BasicDBObjectBuilderUtility for building complex objects. BSONTimestampCodecKnows how to encode and decode BSON timestamps. ClientEncryptionSettingsThe client-side settings for data key creation and explicit encryption. ClientEncryptionSettings.BuilderA builder for
ClientEncryptionSettingscan be immutable, and to support easier construction through chaining.
ClientSessionOptionsThe options to apply to a
ClientSessionOptions.BuilderA builder for instances of
ConnectionStringRepresents a Connection String. DBObjectCodecA collectible codec for a DBObject. DBObjectCodecProviderA provider for a DBObjectCodec. DBRefA representation of a database reference. DBRefCodecA Codec for DBRef instances. DBRefCodecProviderA codec provider for DBRef. DocumentToDBRefTransformerA Document to DBRef Transformer. MongoClientSettingsVarious settings to control the behavior of a
MongoClientSettings.BuilderA builder for
MongoClientSettingscan be immutable, and to support easier construction through chaining.
MongoCompressorMetadata describing a compressor to use for sending and receiving messages to a MongoDB server. MongoCredentialRepresents credentials to authenticate to a mongo server,as well as the source of the credentials and the authentication mechanism to use. MongoDriverInformationThe MongoDriverInformation class allows driver and library authors to add extra information about their library. MongoDriverInformation.Builder MongoNamespaceA MongoDB namespace, which includes a database name and collection name. ReadConcernA read concern allows clients to choose a level of isolation for their reads. ReadPreferenceA class that represents preferred replica set members to which a query or command can be sent. ServerAddressRepresents the location of a Mongo server - i.e. ServerCursorA class representing a cursor id associated with a server address (host/port) Since cursor ids are only useful in the context of a single MongoDB server process, you need both values to do a getMore on the cursor. TagA replica set tag. TaggableReadPreferenceAbstract class for all preference which can be combined with tags TagSetAn immutable set of tags, used to select members of a replica set to use for read operations. TransactionOptionsOptions to apply to transactions. TransactionOptions.BuilderThe builder for transaction options UnixServerAddressRepresents the location of a MongoD unix domain socket. WriteConcernControls the acknowledgment of write operations with various options. WriteConcernResultThe result of a successful write operation. WriteErrorRepresents the details of a write error , e.g.
Enum Summary Enum Description AuthenticationMechanismAn enumeration of the MongodDB-supported authentication mechanisms. CursorTypeAn enumeration of cursor types. ErrorCategoryA categorization of errors returned by a MongoDB server command. ExplainVerbosityAn enumeration of the verbosity levels available for explaining query execution. ReadConcernLevelA read concern level allows clients to choose a level of isolation for their reads.
Exception Summary Exception Description DuplicateKeyExceptionSubclass of
WriteConcernExceptionrepresenting a duplicate key exception
MongoBulkWriteExceptionAn exception that represents all errors associated with a bulk write operation. MongoChangeStreamExceptionAn exception indicating that a failure occurred when running a
MongoClientExceptionA base class for exceptions indicating a failure condition with the MongoClient. MongoCommandExceptionAn exception indicating that a command sent to a MongoDB server returned a failure. MongoConfigurationExceptionAn exception indicating a configuration error in the client. MongoCursorNotFoundExceptionSubclass of
MongoExceptionrepresenting a cursor-not-found exception.
MongoExceptionTop level Exception for all Exceptions, server-side or client-side, that come from the driver. MongoExecutionTimeoutExceptionException indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded. MongoGridFSExceptionAn exception indicating that a failure occurred in GridFS. MongoIncompatibleDriverExceptionAn exception indicating that this version of the driver is not compatible with at least one of the servers that it is currently connected to. MongoInternalExceptionA Mongo exception internal to the driver, not carrying any error code. MongoInterruptedExceptionA non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt. MongoNodeIsRecoveringExceptionAn exception indicating that the server is a member of a replica set but is in recovery mode, and therefore refused to execute the operation. MongoNotPrimaryExceptionAn exception indicating that the server is a member of a replica set but is not the primary, and therefore refused to execute either a write operation or a read operation that required a primary. MongoQueryExceptionAn exception indicating that a query operation failed on the server. MongoSecurityExceptionThis exception is thrown when there is an error reported by the underlying client authentication mechanism. MongoServerExceptionAn exception indicating that some error has been raised by a MongoDB server in response to an operation. MongoSocketClosedExceptionThis exception is thrown when trying to read or write from a closed socket. MongoSocketExceptionSubclass of
MongoExceptionrepresenting a network-related exception
MongoSocketOpenExceptionThis exception is thrown when there is an exception opening a Socket. MongoSocketReadExceptionThis exception is thrown when there is an exception reading a response from a Socket. MongoSocketReadTimeoutExceptionThis exception is thrown when there is a timeout reading a response from the socket. MongoSocketWriteExceptionThis exception is thrown when there is an exception writing a response to a Socket. MongoTimeoutExceptionAn exception indicating that the driver has timed out waiting for either a server or a connection to become available. MongoWriteConcernExceptionAn exception indicating a failure to apply the write concern to the requested write operation MongoWriteExceptionAn exception indicating the failure of a write operation. WriteConcernExceptionAn exception representing an error reported due to a write failure.