Enum Class ConfluentAssociationFetchMode
- All Implemented Interfaces:
Serializable, Comparable<ConfluentAssociationFetchMode>, Constable
Confluent enum controlling whether a DescribeConfigs response includes association configs
(e.g. schema associations used by cluster-link replication). Maps to the tagged
ConfluentAssociationFetchMode field on DescribeConfigsRequest. Set via
DescribeConfigsOptions.confluentAssociationFetchMode.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturn association configs without their schemas.Default: no associations are returned, for every caller.Do not return association configs. -
Method Summary
Modifier and TypeMethodDescriptionbyteid()parse(byte id) Returns the enum constant of this class with the specified name.static ConfluentAssociationFetchMode[]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
-
DEFAULT
Default: no associations are returned, for every caller. -
ASSOCIATIONS_WITHOUT_SCHEMA
Return association configs without their schemas. -
NO_ASSOCIATIONS
Do not return association configs.
-
-
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
-
id
public byte id() -
parse
Attempts to parse a mode fromid, returningOptional.empty()ifidis not a known mode. An absent tagged field arrives as id 0, which isDEFAULT, so omitting the field is always valid.Callers are expected to reject an unrecognized id rather than fall back to
DEFAULT:DEFAULTmeans "no associations", so degrading would make associations silently stop replicating instead of surfacing the malformed request.
-