com.mongodb.casbah

MongoOptions

object MongoOptions extends AnyRef

Helper class for creating MongoOptions instances

Annotations
@deprecated
Deprecated

(Since version 2.7) Please use MongoClient and MongoClientOptions

Source
MongoOptions.scala
Since

2.0

See also

com.mongodb.MongoOptions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MongoOptions
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val Defaults: MongoOptions

  7. def apply(autoConnectRetry: Boolean = Defaults.autoConnectRetry, connectionsPerHost: Int = Defaults.connectionsPerHost, threadsAllowedToBlockForConnectionMultiplier: Int = ..., maxWaitTime: Int = Defaults.maxWaitTime, connectTimeout: Int = Defaults.connectTimeout, socketTimeout: Int = Defaults.socketTimeout, socketKeepAlive: Boolean = Defaults.socketKeepAlive, maxAutoConnectRetryTime: Long = Defaults.maxAutoConnectRetryTime, slaveOk: Boolean = Defaults.slaveOk, 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): MongoOptions

    Instantiate a new MongoOptions instance

    Instantiate a new MongoOptions instance

    autoConnectRetry

    Whether system autoretries on connection errors (default: False)

    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

    maxAutoConnectRetryTime

    Sets the maximum auto connect retry time default 0

    slaveOk

    Whether a driver connected to a replica set will send reads to slaves/secondaries

    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 @return

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any