Package com.mongodb.kafka.connect.source
Enum MongoSourceConfig.ErrorTolerance
- java.lang.Object
-
- java.lang.Enum<MongoSourceConfig.ErrorTolerance>
-
- com.mongodb.kafka.connect.source.MongoSourceConfig.ErrorTolerance
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MongoSourceConfig.ErrorTolerance>
- Enclosing class:
- MongoSourceConfig
public static enum MongoSourceConfig.ErrorTolerance extends java.lang.Enum<MongoSourceConfig.ErrorTolerance>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
value()
static MongoSourceConfig.ErrorTolerance
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MongoSourceConfig.ErrorTolerance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MongoSourceConfig.ErrorTolerance NONE
Tolerate no errors.
-
ALL
public static final MongoSourceConfig.ErrorTolerance ALL
Tolerate all errors.
-
-
Method Detail
-
values
public static MongoSourceConfig.ErrorTolerance[] 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 (MongoSourceConfig.ErrorTolerance c : MongoSourceConfig.ErrorTolerance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MongoSourceConfig.ErrorTolerance valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
-
-