object MongoOptions
Helper class for creating MongoOptions instances
- Annotations
- @deprecated
- Deprecated
(Since version 2.7) Please use MongoClient and MongoClientOptions
- Since
2.0
- See also
com.mongodb.MongoOptions
- Alphabetic
- By Inheritance
- MongoOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Defaults: MongoOptions
-
def
apply(connectionsPerHost: Int = Defaults.connectionsPerHost, threadsAllowedToBlockForConnectionMultiplier: Int = ..., maxWaitTime: Int = Defaults.maxWaitTime, connectTimeout: Int = Defaults.connectTimeout, socketTimeout: Int = Defaults.socketTimeout, socketKeepAlive: Boolean = Defaults.socketKeepAlive, safe: Boolean = Defaults.safe, w: Int = Defaults.w, wTimeout: Int = Defaults.wtimeout, fsync: Boolean = Defaults.fsync, j: Boolean = Defaults.j, dbDecoderFactory: DBDecoderFactory = Defaults.dbDecoderFactory, dbEncoderFactory: DBEncoderFactory = Defaults.dbEncoderFactory, socketFactory: SocketFactory = Defaults.socketFactory, description: String = Defaults.description): Imports.MongoOptions
Instantiate a new MongoOptions instance
Instantiate a new MongoOptions instance
- connectionsPerHost
# of connections allowed per host (pool size, per host)
- threadsAllowedToBlockForConnectionMultiplier
Multiplier for connectiosnPerHost at # of threads that can block, default 5
- maxWaitTime
wait time for a blocking thread for a connection from the pool, default 1000 * 60 * 2
- connectTimeout
timeout in milliseconds, for establishing the socket connections, default 0 (infinite)
- socketTimeout
timeout, passed to Socket.setSoTimeout, default 0
- socketKeepAlive
if socket keep alive is enabled, default false
- safe
if true use a WriteConcern of WriteConcern.SAFE for all operations
- w
The "w" value, (number of writes), of the global WriteConcern
- wTimeout
The "wtimeout" value of the global WriteConcern
- fsync
The "fsync" value of the global WriteConcern, true indicates writes should wait for data to be written to server data file
- j
The "j" value of the global WriteConcern, true indicates writes should wait for a journaling group commit
- dbDecoderFactory
the default decoder factory
- dbEncoderFactory
the default encoder factory
- socketFactory
sets the socket factory for creating sockets to mongod
- description
The description for
Mongo
instances created with these options
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )