public enum SchemaCompatibilityStrategy extends Enum<SchemaCompatibilityStrategy>
| Enum Constant and Description |
|---|
ALWAYS_COMPATIBLE
Always compatible.
|
ALWAYS_INCOMPATIBLE
Always incompatible.
|
BACKWARD
Messages written by an old schema can be read by a new schema.
|
BACKWARD_TRANSITIVE
Be similar to BACKWARD, BACKWARD_TRANSITIVE ensure all previous version schema can
be read by the new schema.
|
FORWARD
Messages written by a new schema can be read by an old schema.
|
FORWARD_TRANSITIVE
Be similar to FORWARD, FORWARD_TRANSITIVE ensure new schema can be ready by all previous
version schema.
|
FULL
Equivalent to both FORWARD and BACKWARD.
|
FULL_TRANSITIVE
Equivalent to both FORWARD_TRANSITIVE and BACKWARD_TRANSITIVE.
|
UNDEFINED
Undefined.
|
| Modifier and Type | Method and Description |
|---|---|
static SchemaCompatibilityStrategy |
fromAutoUpdatePolicy(SchemaAutoUpdateCompatibilityStrategy strategy) |
static SchemaCompatibilityStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaCompatibilityStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaCompatibilityStrategy UNDEFINED
public static final SchemaCompatibilityStrategy ALWAYS_INCOMPATIBLE
public static final SchemaCompatibilityStrategy ALWAYS_COMPATIBLE
public static final SchemaCompatibilityStrategy BACKWARD
public static final SchemaCompatibilityStrategy FORWARD
public static final SchemaCompatibilityStrategy FULL
public static final SchemaCompatibilityStrategy BACKWARD_TRANSITIVE
public static final SchemaCompatibilityStrategy FORWARD_TRANSITIVE
public static final SchemaCompatibilityStrategy FULL_TRANSITIVE
public static SchemaCompatibilityStrategy[] values()
for (SchemaCompatibilityStrategy c : SchemaCompatibilityStrategy.values()) System.out.println(c);
public static SchemaCompatibilityStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SchemaCompatibilityStrategy fromAutoUpdatePolicy(SchemaAutoUpdateCompatibilityStrategy strategy)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.