com.mongodb.casbah

WriteConcern

object WriteConcern extends AnyRef

Helper class for creating WriteConcern instances

Source
WriteConcern.scala
Since

2.0

See also

com.mongodb.WriteConcern

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

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. val FsyncSafe : WriteConcern

    Exceptions are raised for network issues and server errors; Write operations wait for the server to flush data to disk

  7. val Normal : WriteConcern

    Exceptions are raised for network issues but not server errors.

  8. val ReplicasSafe : WriteConcern

    Exceptions are raised for network issues and server errors; waits for at least 2 servers for the write operation.

  9. val Safe : WriteConcern

    Exceptions are raised for network issues and server errors; waits on a server for the write operation

  10. def apply (w: Int = 0, wTimeout: Int = 0, fsync: Boolean = false): WriteConcern

    Create a new WriteConcern object.

    Create a new WriteConcern object.

    w represents # of servers:

    • w=-1 None, no checking is done
    • w=0 None, network socket errors raised
    • w=1 Checks server for errors as well as network socket errors raised
    • w>1 Checks servers (w) for errors as well as network socket errors raised
    w

    (Int) Specifies the number of servers to wait for on the write operation, and exception raising behavior. Defaults to 0

    wTimeout

    (Int) Specifies the number MS to wait for the server operations to write. Defaults to 0 (no timeout)

    fsync

    (Boolean) Indicates whether write operations should require a sync to disk. Defaults to False

  11. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  12. def clone (): AnyRef

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

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  17. def hashCode (): Int

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notifyAll (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  23. def toString (): String

    Definition Classes
    AnyRef → Any
  24. def valueOf (name: String): WriteConcern

    Get the WriteConcern constants by name: NONE, NORMAL, SAFE, FSYNC_SAFE, REPLICA_SAFE.

    Get the WriteConcern constants by name: NONE, NORMAL, SAFE, FSYNC_SAFE, REPLICA_SAFE. (matching is done case insensitively)

    NOTE: This only supports the java versions, no support for the local scala aliases.

  25. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any