Uses of Class
com.mongodb.WriteConcern

Packages that use WriteConcern
com.mongodb Main package with core files. 
 

Uses of WriteConcern in com.mongodb
 

Fields in com.mongodb declared as WriteConcern
static WriteConcern WriteConcern.FSYNC_SAFE
          Exceptions are raised for network issues, and server errors and the write operation waits for the server to flush the data to disk
static WriteConcern WriteConcern.NONE
          No exceptions are raised, even for network issues
static WriteConcern WriteConcern.NORMAL
          Exceptions are raised for network issues, but not server errors
static WriteConcern WriteConcern.REPLICAS_SAFE
          Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation
static WriteConcern WriteConcern.SAFE
          Exceptions are raised for network issues, and server errors; waits on a server for the write operation
 

Methods in com.mongodb that return WriteConcern
 WriteConcern WriteResult.getLastConcern()
          Gets the last WriteConcern used when calling getLastError()
 WriteConcern MongoOptions.getWriteConcern()
          Helper method to return the appropriate WriteConcern instance based on the current related options settings.
 WriteConcern Mongo.getWriteConcern()
          Gets the default write concern
 WriteConcern DBCollection.getWriteConcern()
          Get the write concern for this collection.
 WriteConcern DB.getWriteConcern()
          Gets the write concern for this database.
static WriteConcern WriteConcern.valueOf(String name)
          Gets the WriteConcern constants by name: NONE, NORMAL, SAFE, FSYNC_SAFE, REPLICA_SAFE.
 

Methods in com.mongodb with parameters of type WriteConcern
 CommandResult WriteResult.getLastError(WriteConcern concern)
          This method does following: - returns the existing CommandResult if concern is null or less strict than the concern it was obtained with - otherwise attempts to obtain a CommandResult by calling getLastError with the concern
 CommandResult DB.getLastError(WriteConcern concern)
           
abstract  WriteResult DBCollection.insert(DBObject[] arr, WriteConcern concern)
          Saves document(s) to the database.
 WriteResult DBCollection.insert(DBObject o, WriteConcern concern)
          Inserts a document into the database.
 WriteResult DBCollection.insert(List<DBObject> list, WriteConcern concern)
          Saves document(s) to the database.
abstract  WriteResult DBCollection.remove(DBObject o, WriteConcern concern)
          Removes objects from the database collection.
 WriteResult DBCollection.save(DBObject jo, WriteConcern concern)
          Saves an object to this collection (does insert or update based on the object _id).
 WriteResult DBTCPConnector.say(DB db, com.mongodb.OutMessage m, WriteConcern concern)
           
 WriteResult DBConnector.say(DB db, com.mongodb.OutMessage m, WriteConcern concern)
          does a write operation
 WriteResult DBTCPConnector.say(DB db, com.mongodb.OutMessage m, WriteConcern concern, ServerAddress hostNeeded)
           
 WriteResult DBConnector.say(DB db, com.mongodb.OutMessage m, WriteConcern concern, ServerAddress hostNeeded)
          does a write operation
 void Mongo.setWriteConcern(WriteConcern concern)
          Sets the write concern for this database.
 void DBCollection.setWriteConcern(WriteConcern concern)
          Set the write concern for this collection.
 void DB.setWriteConcern(WriteConcern concern)
          Sets the write concern for this database.
abstract  WriteResult DBCollection.update(DBObject q, DBObject o, boolean upsert, boolean multi, WriteConcern concern)
          Performs an update operation.