public enum WriteOption extends Enum<WriteOption>
WriteConcern
Enum Constant and Description |
---|
ACKNOWLEDGED |
FSYNCED |
JOURNALED |
MAJORITY |
REPLICA_ACKNOWLEDGED |
UNACKNOWLEDGED |
Modifier and Type | Method and Description |
---|---|
static WriteOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteOption ACKNOWLEDGED
WriteConcern.ACKNOWLEDGED
public static final WriteOption UNACKNOWLEDGED
WriteConcern.UNACKNOWLEDGED
public static final WriteOption FSYNCED
com.mongodb.WriteConcern#FSYNCED
public static final WriteOption JOURNALED
WriteConcern.JOURNALED
public static final WriteOption REPLICA_ACKNOWLEDGED
com.mongodb.WriteConcern#REPLICA_ACKNOWLEDGED
public static final WriteOption MAJORITY
WriteConcern.MAJORITY
public static WriteOption[] values()
for (WriteOption c : WriteOption.values()) System.out.println(c);
public static WriteOption 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 nullCopyright © 2024 Eclipse. All rights reserved.