object ServerAddress
Represents the location of a MongoDB server - i.e. server name and port number
- Since
1.0
- Alphabetic
- By Inheritance
- ServerAddress
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(host: String, port: Int): com.mongodb.ServerAddress
Creates a ServerAddress
Creates a ServerAddress
- host
hostname
- port
mongod port
- def apply(inetSocketAddress: InetSocketAddress): com.mongodb.ServerAddress
Creates a ServerAddress
Creates a ServerAddress
- inetSocketAddress
inet socket address containing hostname and port
- def apply(inetAddress: InetAddress, port: Int): com.mongodb.ServerAddress
Creates a ServerAddress
Creates a ServerAddress
- inetAddress
host address
- port
mongod port
- def apply(inetAddress: InetAddress): com.mongodb.ServerAddress
Creates a ServerAddress with default port
Creates a ServerAddress with default port
- inetAddress
host address
- def apply(host: String): com.mongodb.ServerAddress
Creates a ServerAddress with default port
Creates a ServerAddress with default port
- host
hostname
- def apply(): com.mongodb.ServerAddress
Creates a ServerAddress with default host and port
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: