Packages

o

org.mongodb.scala

ReadConcernLevel

object ReadConcernLevel

The readConcern level of isolation for reads.

Since

1.1

Note

Requires MongoDB 3.2 or greater

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadConcernLevel
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val AVAILABLE: com.mongodb.ReadConcernLevel

    The available read concern level.

    The available read concern level.

    Since

    2.5

    Note

    Requires MongoDB 4.0 or greater

  2. val LINEARIZABLE: ReadConcernLevel

    The linearizable read concern.

    The linearizable read concern.

    This read concern is only compatible with org.mongodb.scala.ReadPreference$.primary

    Since

    2.2

    Note

    Requires MongoDB 3.4 or greater

  3. val LOCAL: ReadConcernLevel

    Return the node's most recent copy of data.

    Return the node's most recent copy of data. Provides no guarantee that the data has been written to a majority of the nodes.

  4. val MAJORITY: ReadConcernLevel

    Return the node's most recent copy of the data confirmed as having been written to a majority of the nodes.

  5. val SNAPSHOT: ReadConcernLevel

    The snapshot read concern level.

    The snapshot read concern level.

    Since

    2.4

    Note

    Requires MongoDB 4.0 or greater

  6. def fromString(readConcernLevel: String): Try[ReadConcernLevel]

    Returns the ReadConcern from the string read concern level.

    Returns the ReadConcern from the string read concern level.

    readConcernLevel

    the read concern level string.

    returns

    the read concern