public enum MorphiaAcknowledgment extends Enum<MorphiaAcknowledgment>
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.WriteConcern |
getWriteConcern() |
boolean |
isJournable() |
static MorphiaAcknowledgment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MorphiaAcknowledgment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MorphiaAcknowledgment ZERO
public static final MorphiaAcknowledgment ONE
public static final MorphiaAcknowledgment TWO
public static final MorphiaAcknowledgment THREE
public static final MorphiaAcknowledgment MAJORITY
public static MorphiaAcknowledgment[] values()
for (MorphiaAcknowledgment c : MorphiaAcknowledgment.values()) System.out.println(c);
public static MorphiaAcknowledgment 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 nullpublic com.mongodb.WriteConcern getWriteConcern()
public boolean isJournable()
Copyright © 2020. All rights reserved.