Package io.trino.plugin.mongodb
Enum WriteConcernType
- java.lang.Object
-
- java.lang.Enum<WriteConcernType>
-
- io.trino.plugin.mongodb.WriteConcernType
-
- All Implemented Interfaces:
Serializable,Comparable<WriteConcernType>
public enum WriteConcernType extends Enum<WriteConcernType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACKNOWLEDGEDFSYNC_SAFEFSYNCEDJOURNAL_SAFEYJOURNALEDMAJORITYNORMALREPLICA_ACKNOWLEDGEDREPLICAS_SAFESAFEUNACKNOWLEDGED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.WriteConcerngetWriteConcern()static WriteConcernTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WriteConcernType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACKNOWLEDGED
public static final WriteConcernType ACKNOWLEDGED
-
FSYNC_SAFE
public static final WriteConcernType FSYNC_SAFE
-
FSYNCED
public static final WriteConcernType FSYNCED
-
JOURNAL_SAFEY
public static final WriteConcernType JOURNAL_SAFEY
-
JOURNALED
public static final WriteConcernType JOURNALED
-
MAJORITY
public static final WriteConcernType MAJORITY
-
NORMAL
public static final WriteConcernType NORMAL
-
REPLICA_ACKNOWLEDGED
public static final WriteConcernType REPLICA_ACKNOWLEDGED
-
REPLICAS_SAFE
public static final WriteConcernType REPLICAS_SAFE
-
SAFE
public static final WriteConcernType SAFE
-
UNACKNOWLEDGED
public static final WriteConcernType UNACKNOWLEDGED
-
-
Method Detail
-
values
public static WriteConcernType[] 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 (WriteConcernType c : WriteConcernType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WriteConcernType 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 nameNullPointerException- if the argument is null
-
getWriteConcern
public com.mongodb.WriteConcern getWriteConcern()
-
-