package connection
The connection package contains classes that manage connecting to MongoDB servers.
- Alphabetic
- By Inheritance
- connection
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- î
type AsyncTransportSettings = com.mongodb.connection.AsyncTransportSettings
TransportSettings for an async transport implementation.
TransportSettings for an async transport implementation.
- Since
5.2
- î
type ClusterSettings = com.mongodb.connection.ClusterSettings
Settings for the cluster.
- î
type ConnectionPoolSettings = com.mongodb.connection.ConnectionPoolSettings
All settings that relate to the pool of connections to a MongoDB server.
- î
type NettyTransportSettings = com.mongodb.connection.NettyTransportSettings
TransportSettings for a Netty-based transport implementation.
TransportSettings for a Netty-based transport implementation.
- Since
4.11
- î
type ProxySettings = com.mongodb.connection.ProxySettings
This setting is only applicable when communicating with a MongoDB server using the synchronous variant of
MongoClient
.This setting is only applicable when communicating with a MongoDB server using the synchronous variant of
MongoClient
.This setting is furthermore ignored if:
- the communication is via
com.mongodb.UnixServerAddress
(Unix domain socket). - a
StreamFactoryFactory
isMongoClientSettings.Builder.streamFactoryFactory
configured.
- the communication is via
- î
type ServerSettings = com.mongodb.connection.ServerSettings
Settings relating to monitoring of each server.
- î
type SocketSettings = com.mongodb.connection.SocketSettings
An immutable class representing socket settings used for connections to a MongoDB server.
- î
type SslSettings = com.mongodb.connection.SslSettings
Settings for connecting to MongoDB via SSL.
- î
type TransportSettings = com.mongodb.connection.TransportSettings
Transport settings for the driver.
Transport settings for the driver.
- Since
4.11
Value Members
- î
object AsyncTransportSettings
Async transport settings for the driver.
Async transport settings for the driver.
- Since
5.2
- î
object ClusterSettings
Settings for the cluster.
Settings for the cluster.
- Since
1.0
- î
object ConnectionPoolSettings
All settings that relate to the pool of connections to a MongoDB server.
All settings that relate to the pool of connections to a MongoDB server.
- Since
1.0
- î
object NettyTransportSettings
An immutable class representing Netty transport settings used for connections to a MongoDB server.
An immutable class representing Netty transport settings used for connections to a MongoDB server.
- Since
4.11
- î
object ProxySettings
This setting is only applicable when communicating with a MongoDB server using the synchronous variant of
MongoClient
.This setting is only applicable when communicating with a MongoDB server using the synchronous variant of
MongoClient
.This setting is furthermore ignored if:
- the communication is via
com.mongodb.UnixServerAddress
(Unix domain socket). - a
StreamFactoryFactory
isMongoClientSettings.Builder.streamFactoryFactory
configured.
- the communication is via
- î
object ServerSettings
Settings relating to monitoring of each server.
Settings relating to monitoring of each server.
- Since
1.0
- î
object SocketSettings
An immutable class representing socket settings used for connections to a MongoDB server.
An immutable class representing socket settings used for connections to a MongoDB server.
- Since
1.0
- î
object SslSettings
Settings for connecting to MongoDB via SSL.
Settings for connecting to MongoDB via SSL.
- Since
1.0
- î
object TransportSettings
An immutable class representing transport settings used for connections to a MongoDB server.
An immutable class representing transport settings used for connections to a MongoDB server.
- Since
4.11
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: