Package com.mongodb.connection
Contains classes that manage connecting to MongoDB servers.
-
Interface Summary Interface Description AsyncCompletionHandler<T> Completion handler for asynchronous I/O.BufferProvider A provider of instances of ByteBuf.Stream A full duplex stream of bytes.StreamFactory A factory for streams.StreamFactoryFactory A factory ofStreamFactory
instances. -
Class Summary Class Description AsynchronousSocketChannelStreamFactory Factory to create a Stream that's an AsynchronousSocketChannelStream.AsynchronousSocketChannelStreamFactoryFactory AStreamFactoryFactory
implementation for AsynchronousSocketChannel-based streams.AsynchronousSocketChannelStreamFactoryFactory.Builder A builder for an instance ofAsynchronousSocketChannelStreamFactoryFactory
.ClusterDescription Immutable snapshot state of a cluster.ClusterId A client-generated identifier that uniquely identifies a connection to a MongoDB cluster, which could be sharded, replica set, or standalone.ClusterSettings Settings for the cluster.ClusterSettings.Builder A builder for the cluster settings.ConnectionDescription A description of a connection to a MongoDB server.ConnectionId An immutable connection identifier of a connection to a MongoDB server.ConnectionPoolSettings All settings that relate to the pool of connections to a MongoDB server.ConnectionPoolSettings.Builder A builder for creating ConnectionPoolSettings.ServerDescription Immutable snapshot state of a server.ServerDescription.Builder A builder for creating ServerDescription.ServerId A client-generated identifier that uniquely identifies a MongoDB server.ServerSettings Settings relating to monitoring of each server.ServerSettings.Builder A builder for the settings.ServerVersion Holds an array of three integers representing the server version, e.g.SocketSettings An immutable class representing socket settings used for connections to a MongoDB server.SocketSettings.Builder A builder for an instance ofSocketSettings
.SocketStreamFactory Factory for creating instances ofSocketStream
.SslSettings Settings for connecting to MongoDB via SSL.SslSettings.Builder A builder for creating SSLSettings.TlsChannelStreamFactoryFactory AStreamFactoryFactory
that supports TLS/SSL. -
Enum Summary Enum Description ClusterConnectionMode The cluster connection mode.ClusterType An enumeration of all possible cluster types.ServerConnectionState Enum of the current state of attempting to connect to a server.ServerType The type of the server.