public
static
final
WriteConcern |
FSYNC_SAFE |
Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk |
public
static
final
WriteConcern |
JOURNAL_SAFE |
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 |
public
static
final
WriteConcern |
MAJORITY |
Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation |
public
static
final
WriteConcern |
NONE |
No exceptions are raised, even for network issues |
public
static
final
WriteConcern |
NORMAL |
Exceptions are raised for network issues, but not server errors |
public
static
final
WriteConcern |
REPLICAS_SAFE |
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation |
public
static
final
WriteConcern |
SAFE |
Exceptions are raised for network issues, and server errors; waits on a server for the write operation |