object WriteConcern
Helper class for creating WriteConcern instances
- Since
2.0
- See also
JWriteConcern
- Alphabetic
- By Inheritance
- WriteConcern
- 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
Acknowledged: WriteConcern
Write operations that use this write concern will wait for acknowledgement from the primary server before returning.
Write operations that use this write concern will wait for acknowledgement from the primary server before returning. Exceptions are raised for network issues, and server errors.
- Since
2.7
-
val
FsyncSafe: WriteConcern
Exceptions are raised for network issues and server errors; Write operations wait for the server to flush data to disk
-
val
Fsynced: WriteConcern
Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk.
Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk.
- Since
2.7
-
val
JournalSafe: WriteConcern
Exceptions are raised for network issues, and server errors; the write operation waits for the server to group commit to the journal file on disk
-
val
Journaled: WriteConcern
Exceptions are raised for network issues, and server errors; the write operation waits for the server to group commit to the journal file on disk.
Exceptions are raised for network issues, and server errors; the write operation waits for the server to group commit to the journal file on disk.
- Since
2.7
-
val
Majority: WriteConcern
Exceptions are raised for network issues and server errors; waits on a majority of servers for the write operation
-
val
Normal: WriteConcern
Exceptions are raised for network issues but not server errors.
-
val
ReplicaAcknowledged: WriteConcern
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation.
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation.
- Since
2.7
-
val
ReplicasSafe: WriteConcern
Exceptions are raised for network issues and server errors; waits for at least 2 servers for the write operation.
-
val
Safe: WriteConcern
Exceptions are raised for network issues and server errors; waits on a server for the write operation
-
val
Unacknowledged: WriteConcern
Write operations that use this write concern will return as soon as the message is written to the socket.
Write operations that use this write concern will return as soon as the message is written to the socket. Exceptions are raised for network issues, but not server errors.
- Since
2.7
-
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
-
def
valueOf(name: String): Option[WriteConcern]
Get the WriteConcern constants by name: NONE, NORMAL, SAFE, MAJORITY, FSYNC_SAFE, JOURNAL_SAFE, REPLICAS_SAFE.
Get the WriteConcern constants by name: NONE, NORMAL, SAFE, MAJORITY, FSYNC_SAFE, JOURNAL_SAFE, REPLICAS_SAFE. (matching is done case insensitively)
NOTE: This only supports the java versions, no support for the local scala aliases.
-
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( ... )