org.qi4j.entitystore.mongodb

## Enum MongoEntityStoreConfiguration.WriteConcern

- java.lang.Object
- - java.lang.Enum<MongoEntityStoreConfiguration.WriteConcern>
  - - org.qi4j.entitystore.mongodb.MongoEntityStoreConfiguration.WriteConcern

- All Implemented Interfaces:
    Serializable, Comparable<MongoEntityStoreConfiguration.WriteConcern>
  Enclosing interface:
    MongoEntityStoreConfiguration

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

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant and Description
    `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
    `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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static MongoEntityStoreConfiguration.WriteConcern` | `valueOf(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

    - #### 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(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:
        `IllegalArgumentException` - if this enum type has no constant with the specified name
        `NullPointerException` - if the argument is null