public enum ErrorStrategyValue extends java.lang.Enum<ErrorStrategyValue>
Enum Constant and Description |
---|
NONE
Deprecated.
maintain broken, but consistent behaviour with previous versions of micronaut-kafka that
do not support error strategy.
See https://github.com/micronaut-projects/micronaut-kafka/issues/372
|
RESUME_AT_NEXT_RECORD
This strategy will ignore the current error and will resume at the next offset.
|
RETRY_EXPONENTIALLY_ON_ERROR
This strategy will stop consuming subsequent records in the case of an error and will
attempt to re-consume the current record with exponentially growing time breaks between
consumption attempts.
|
RETRY_ON_ERROR
This strategy will stop consuming subsequent records in the case of an error and will
attempt to re-consume the current record indefinitely.
|
Modifier and Type | Method and Description |
---|---|
static ErrorStrategyValue |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorStrategyValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorStrategyValue RETRY_ON_ERROR
public static final ErrorStrategyValue RETRY_EXPONENTIALLY_ON_ERROR
public static final ErrorStrategyValue RESUME_AT_NEXT_RECORD
@Deprecated public static final ErrorStrategyValue NONE
public static ErrorStrategyValue[] values()
for (ErrorStrategyValue c : ErrorStrategyValue.values()) System.out.println(c);
public static ErrorStrategyValue valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null