Package com.mongodb
@NonNullApi
package com.mongodb
The core mongodb package
-
ClassDescriptionAn enumeration of the MongodDB-supported authentication mechanisms.The client-side automatic encryption settings.A builder for
AutoEncryptionSettings
so thatAutoEncryptionSettings
can be immutable, and to support easier construction through chaining.A representation of Amazon Web Services credentials for API authentication.An implementation of List that reflects the way BSON lists work.A basic implementation of BSON object that is MongoDB specific.Utility for building complex objects.Block<T>An interface for applying some logic against the given parameter.Knows how to encode and decode BSON timestamps.The client-side settings for data key creation and explicit encryption.A builder forClientEncryptionSettings
so thatClientEncryptionSettings
can be immutable, and to support easier construction through chaining.The options to apply to aClientSession
.A builder for instances ofClientSession
Represents a Connection String.A marker interface for providers ofRequestContext
.A commit quorum specifies how many data-bearing members of a replica set, including the primary, must complete the index builds successfully before the primary marks the indexes as ready.An enumeration of cursor types.This interface adds some specific behaviour toBSONObject
for MongoDB documents.A collectible codec for a DBObject.A provider for a DBObjectCodec.A representation of a database reference.A Codec for DBRef instances.A codec provider for DBRef.A Document to DBRef Transformer.The legacyWriteConcernException
, thrown when trying to insert or update a document containing a duplicate key.A categorization of errors returned by a MongoDB server command.An enumeration of the verbosity levels available for explaining query execution.Function<T,R> Apply a function to the input object yielding an appropriate result object.A CodecProvider for Java Records.An implementation ofSubjectProvider
suitable for use as the value of theMongoCredential.JAVA_SUBJECT_PROVIDER_KEY
mechanism property for Kerberos credentials, created viaMongoCredential.createGSSAPICredential(String)
.A CodecProvider for Kotlin data classes.An immutable class representing settings for logging.A builder for an instance ofLoggerSettings
.An exception that represents all errors associated with a bulk write operation.An exception indicating that a failure occurred when running a$changeStream
.A base class for exceptions indicating a failure condition with the MongoClient.Various settings to control the behavior of aMongoClient
.A builder forMongoClientSettings
so thatMongoClientSettings
can be immutable, and to support easier construction through chaining.An exception indicating that a command sent to a MongoDB server returned a failure.Metadata describing a compressor to use for sending and receiving messages to a MongoDB server.An exception indicating a configuration error in the client.An exception that may usually happen as a result of another thread clearing a connection pool.Represents credentials to authenticate to a mongo server,as well as the source of the credentials and the authentication mechanism to use.The OIDC Identity Provider's configuration that can be used to acquire an Access Token.This callback is invoked when the OIDC-based authenticator requests tokens from the identity provider.The context for theOIDC request callback
.The OIDC credential information.Subclass ofMongoException
representing a cursor-not-found exception.The MongoDriverInformation class allows driver and library authors to add extra information about their library.Top level Exception for all Exceptions, server-side or client-side, that come from the driver.Exception indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded.An exception indicating that a failure occurred in GridFS.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.A Mongo exception internal to the driver, not carrying any error code.A driver-specific non-checked counterpart toInterruptedException
.A MongoDB namespace, which includes a database name and collection name.An exception indicating that the server is a member of a replica set but is in recovery mode, and therefore refused to execute the operation.An 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.Exception thrown to indicate that a MongoDB operation has exceeded the specified timeout for the full execution of operation.An exception indicating that a query operation failed on the server.This exception is thrown when there is an error reported by the underlying client authentication mechanism.An exception indicating that some error has been raised by a MongoDB server in response to an operation.An exception indicating that the server on which an operation is selected to run is no longer available to execute operations.This exception is thrown when trying to read or write from a closed socket.Subclass ofMongoException
representing a network-related exceptionThis exception is thrown when there is an exception opening a Socket.This exception is thrown when there is an exception reading a response from a Socket.This exception is thrown when there is a timeout reading a response from the socket.This exception is thrown when there is an exception writing a response to a Socket.This exception is thrown when there is a timeout writing a response from the socket.An exception indicating that the driver has timed out waiting for either a server or a connection to become available.An exception thrown by methods that may automatically create data encryption keys where needed based on theencryptedFields
configuration.An exception indicating a failure to apply the write concern to the requested write operationAn exception indicating the failure of a write operation.A read concern allows clients to choose a level of isolation for their reads.A read concern level allows clients to choose a level of isolation for their reads.A class that represents preferred replica set members to which a query or command can be sent.Options to apply to hedged reads in the server.The builder for read preference hedge optionsThe request context, useful for implementing distributed tracing.Represents the location of a Mongo server - i.e.A specification of the server API on which the application relies.A builder forServerApi
so thatServerApi
can be immutable, and to support easier construction through chaining.The Server API version.A 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.This interface enables applications to take full control of the lifecycle of theSubject
with which authentication requests are executed.A replica set tag.Abstract class for all preference which can be combined with tagsAn immutable set of tags, used to select members of a replica set to use for read operations.Options to apply to transactions.The builder for transaction optionsRepresents the location of a MongoD unix domain socket.Controls the acknowledgment of write operations with various options.An exception representing an error reported due to a write failure.The result of a successful write operation.Represents the details of a write error , e.g.