Package io.debezium.config
Enum CommonConnectorConfig.EventProcessingFailureHandlingMode
- java.lang.Object
-
- java.lang.Enum<CommonConnectorConfig.EventProcessingFailureHandlingMode>
-
- io.debezium.config.CommonConnectorConfig.EventProcessingFailureHandlingMode
-
- All Implemented Interfaces:
EnumeratedValue
,Serializable
,Comparable<CommonConnectorConfig.EventProcessingFailureHandlingMode>
- Enclosing class:
- CommonConnectorConfig
public static enum CommonConnectorConfig.EventProcessingFailureHandlingMode extends Enum<CommonConnectorConfig.EventProcessingFailureHandlingMode> implements EnumeratedValue
The set of predefined modes for dealing with failures during event processing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL
An exception indicating the problematic events and their position is raised, causing the connector to be stopped.IGNORE
Problematic events will be skipped - for transitional period only, scheduled to be removed.SKIP
Problematic events will be skipped.WARN
The position of problematic events will be logged and events will be skipped.
-
Field Summary
Fields Modifier and Type Field Description static String
OBSOLETE_NAME_FOR_SKIP_FAILURE_HANDLING
private String
value
-
Constructor Summary
Constructors Modifier Constructor Description private
EventProcessingFailureHandlingMode(String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Returns the string representation of this valuestatic CommonConnectorConfig.EventProcessingFailureHandlingMode
parse(String value)
Determine if the supplied value is one of the predefined options.static CommonConnectorConfig.EventProcessingFailureHandlingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommonConnectorConfig.EventProcessingFailureHandlingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKIP
public static final CommonConnectorConfig.EventProcessingFailureHandlingMode SKIP
Problematic events will be skipped.
-
WARN
public static final CommonConnectorConfig.EventProcessingFailureHandlingMode WARN
The position of problematic events will be logged and events will be skipped.
-
FAIL
public static final CommonConnectorConfig.EventProcessingFailureHandlingMode FAIL
An exception indicating the problematic events and their position is raised, causing the connector to be stopped.
-
IGNORE
public static final CommonConnectorConfig.EventProcessingFailureHandlingMode IGNORE
Problematic events will be skipped - for transitional period only, scheduled to be removed.
-
-
Field Detail
-
OBSOLETE_NAME_FOR_SKIP_FAILURE_HANDLING
public static final String OBSOLETE_NAME_FOR_SKIP_FAILURE_HANDLING
- See Also:
- Constant Field Values
-
value
private final String value
-
-
Constructor Detail
-
EventProcessingFailureHandlingMode
private EventProcessingFailureHandlingMode(String value)
-
-
Method Detail
-
values
public static CommonConnectorConfig.EventProcessingFailureHandlingMode[] 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 (CommonConnectorConfig.EventProcessingFailureHandlingMode c : CommonConnectorConfig.EventProcessingFailureHandlingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommonConnectorConfig.EventProcessingFailureHandlingMode 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
-
getValue
public String getValue()
Description copied from interface:EnumeratedValue
Returns the string representation of this value- Specified by:
getValue
in interfaceEnumeratedValue
- Returns:
- The string representation of this value
-
parse
public static CommonConnectorConfig.EventProcessingFailureHandlingMode parse(String value)
Determine if the supplied value is one of the predefined options.- Parameters:
value
- the configuration property value; may not be null- Returns:
- the matching option, or null if no match is found
-
-