Enum Class ValidationDecision
java.lang.Object
java.lang.Enum<ValidationDecision>
io.confluent.kafka.schemaregistry.validator.core.ValidationDecision
- All Implemented Interfaces:
Serializable, Comparable<ValidationDecision>, Constable
Outcome of validating one record.
Deliberately separate from RecordInterceptor.RecordInterceptorResponse: the broker
maps RETRY to UNKNOWN_TOPIC_OR_PARTITION, whereas Kora Edge cannot synthesize a
Kafka response at all and expresses rejection by tearing down the connection. The three values
do not mean the same thing on both sides, so each adapter maps them to its own response type.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationDecisionReturns the enum constant of this class with the specified name.static ValidationDecision[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ACCEPT
The record passed validation and may be appended. -
REJECT
The record failed validation and must not be appended. -
RETRY
Validation could not be completed from cache. The record is neither accepted nor rejected; the caller should ask the producer to retry once the background fetch has populated the cache.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-