com.mongodb
Class DB.WriteConcern

java.lang.Object
  extended by com.mongodb.DB.WriteConcern
Enclosing class:
DB

Deprecated.

@Deprecated
public static class DB.WriteConcern
extends java.lang.Object

Settings for strictness of error checking on writes (inserts, updates, and removes).


Field Summary
static WriteConcern NONE
          Deprecated. Don't check for or report any errors on writes.
static WriteConcern NORMAL
          Deprecated. Use the default level of error checking on writes.
static WriteConcern STRICT
          Deprecated. Send a getLastError command following all writes.
 
Constructor Summary
DB.WriteConcern()
          Deprecated.  
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final WriteConcern NONE
Deprecated. 
Don't check for or report any errors on writes.


NORMAL

public static final WriteConcern NORMAL
Deprecated. 
Use the default level of error checking on writes. Don't send a getLastError command or wait for a response, but do raise an exception on socket errors.


STRICT

public static final WriteConcern STRICT
Deprecated. 
Send a getLastError command following all writes. The write will wait for a response from the server and raise an exception on any error. Equivalent to the "safe mode" that is present in some other MongoDB drivers.

Constructor Detail

DB.WriteConcern

public DB.WriteConcern()
Deprecated.