Enum Class ConfluentAssociationFetchMode

java.lang.Object
java.lang.Enum<ConfluentAssociationFetchMode>
org.apache.kafka.common.ConfluentAssociationFetchMode
All Implemented Interfaces:
Serializable, Comparable<ConfluentAssociationFetchMode>, Constable

public enum ConfluentAssociationFetchMode extends Enum<ConfluentAssociationFetchMode>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static ConfluentAssociationFetchMode[] 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

      public static ConfluentAssociationFetchMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • id

      public byte id()
    • parse

      public static Optional<ConfluentAssociationFetchMode> parse(byte id)
      Attempts to parse a mode from id, returning Optional.empty() if id is not a known mode. An absent tagged field arrives as id 0, which is DEFAULT, so omitting the field is always valid.

      Callers are expected to reject an unrecognized id rather than fall back to DEFAULT: DEFAULT means "no associations", so degrading would make associations silently stop replicating instead of surfacing the malformed request.