org.qi4j.entitystore.mongodb
Enum MongoEntityStoreConfiguration.WriteConcern

java.lang.Object
  extended by java.lang.Enum<MongoEntityStoreConfiguration.WriteConcern>
      extended by org.qi4j.entitystore.mongodb.MongoEntityStoreConfiguration.WriteConcern
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MongoEntityStoreConfiguration.WriteConcern>
Enclosing interface:
MongoEntityStoreConfiguration

public static enum MongoEntityStoreConfiguration.WriteConcern
extends java.lang.Enum<MongoEntityStoreConfiguration.WriteConcern>


Enum Constant Summary
FSYNC_SAFE
          Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk
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
MAJORITY
          Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation
NONE
          No exceptions are raised, even for network issues
NORMAL
          Exceptions are raised for network issues, but not server errors
REPLICAS_SAFE
          Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation
SAFE
          Exceptions are raised for network issues, and server errors; waits on a server for the write operation
 
Method Summary
static MongoEntityStoreConfiguration.WriteConcern valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MongoEntityStoreConfiguration.WriteConcern[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final MongoEntityStoreConfiguration.WriteConcern NORMAL
Exceptions are raised for network issues, but not server errors


NONE

public static final MongoEntityStoreConfiguration.WriteConcern NONE
No exceptions are raised, even for network issues


SAFE

public static final MongoEntityStoreConfiguration.WriteConcern SAFE
Exceptions are raised for network issues, and server errors; waits on a server for the write operation


MAJORITY

public static final MongoEntityStoreConfiguration.WriteConcern MAJORITY
Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation


FSYNC_SAFE

public static final MongoEntityStoreConfiguration.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


JOURNAL_SAFE

public static final MongoEntityStoreConfiguration.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


REPLICAS_SAFE

public static final MongoEntityStoreConfiguration.WriteConcern REPLICAS_SAFE
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation

Method Detail

values

public static MongoEntityStoreConfiguration.WriteConcern[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MongoEntityStoreConfiguration.WriteConcern c : MongoEntityStoreConfiguration.WriteConcern.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MongoEntityStoreConfiguration.WriteConcern valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null