|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MongoEntityStoreConfiguration.WriteConcern>
org.qi4j.entitystore.mongodb.MongoEntityStoreConfiguration.WriteConcern
public static 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 |
---|
public static final MongoEntityStoreConfiguration.WriteConcern NORMAL
public static final MongoEntityStoreConfiguration.WriteConcern NONE
public static final MongoEntityStoreConfiguration.WriteConcern SAFE
public static final MongoEntityStoreConfiguration.WriteConcern MAJORITY
public static final MongoEntityStoreConfiguration.WriteConcern FSYNC_SAFE
public static final MongoEntityStoreConfiguration.WriteConcern JOURNAL_SAFE
public static final MongoEntityStoreConfiguration.WriteConcern REPLICAS_SAFE
Method Detail |
---|
public static MongoEntityStoreConfiguration.WriteConcern[] values()
for (MongoEntityStoreConfiguration.WriteConcern c : MongoEntityStoreConfiguration.WriteConcern.values()) System.out.println(c);
public static MongoEntityStoreConfiguration.WriteConcern valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |