Class FeatureMetadata

java.lang.Object
org.apache.kafka.clients.admin.FeatureMetadata

public class FeatureMetadata extends Object
Encapsulates details about finalized as well as supported features. This is particularly useful to hold the result returned by the Admin.describeFeatures(DescribeFeaturesOptions) API.
  • Method Details

    • finalizedFeatures

      public Map<String,FinalizedVersionRange> finalizedFeatures()
      Returns a map of finalized feature versions. Each entry in the map contains a key being a feature name and the value being a range of version levels supported by every broker in the cluster.
    • finalizedFeaturesEpoch

      public Optional<Long> finalizedFeaturesEpoch()
      The epoch for the finalized features. If the returned value is empty, it means the finalized features are absent/unavailable.
    • supportedFeatures

      public Map<String,SupportedVersionRange> supportedFeatures()
      Returns a map of supported feature versions. Each entry in the map contains a key being a feature name and the value being a range of versions supported by a particular broker in the cluster.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object