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.
2.7
Exceptions are raised for network issues and server errors; Write operations wait for the server to flush 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.
Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk.
2.7
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.
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.
2.7
Exceptions are raised for network issues and server errors; waits on a majority of servers for the write operation
Exceptions are raised for network issues but not server errors.
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.
2.7
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 on a server for the write operation
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.
2.7
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.
Helper class for creating WriteConcern instances
2.0
JWriteConcern