public static enum MongoDBEntityStoreConfiguration.WriteConcern extends Enum<MongoDBEntityStoreConfiguration.WriteConcern>
Enum Constant and Description |
---|
ACKNOWLEDGED
Write operations that use this write concern will wait for acknowledgement,
using the default write concern configured on the server.
|
JOURNALED
Write operations wait 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.
|
UNACKNOWLEDGED
Write operations that use this write concern will return as soon as the message is written to the socket.
|
W1
Write operations that use this write concern will wait for acknowledgement from a single member.
|
W2
Write operations that use this write concern will wait for acknowledgement from two members.
|
W3
Write operations that use this write concern will wait for acknowledgement from three members.
|
Modifier and Type | Method and Description |
---|---|
static MongoDBEntityStoreConfiguration.WriteConcern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MongoDBEntityStoreConfiguration.WriteConcern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoDBEntityStoreConfiguration.WriteConcern ACKNOWLEDGED
public static final MongoDBEntityStoreConfiguration.WriteConcern W1
public static final MongoDBEntityStoreConfiguration.WriteConcern W2
public static final MongoDBEntityStoreConfiguration.WriteConcern W3
public static final MongoDBEntityStoreConfiguration.WriteConcern UNACKNOWLEDGED
public static final MongoDBEntityStoreConfiguration.WriteConcern JOURNALED
public static final MongoDBEntityStoreConfiguration.WriteConcern MAJORITY
public static MongoDBEntityStoreConfiguration.WriteConcern[] values()
for (MongoDBEntityStoreConfiguration.WriteConcern c : MongoDBEntityStoreConfiguration.WriteConcern.values()) System.out.println(c);
public static MongoDBEntityStoreConfiguration.WriteConcern valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null