Package org.apache.kafka.clients.admin
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 Summary
Modifier and Type Method Description boolean
equals(Object other)
Map<String,FinalizedVersionRange>
finalizedFeatures()
Returns a map of finalized feature versions.Optional<Long>
finalizedFeaturesEpoch()
The epoch for the finalized features.int
hashCode()
Map<String,SupportedVersionRange>
supportedFeatures()
Returns a map of supported feature versions.String
toString()
-
Method Details
-
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
The epoch for the finalized features. If the returned value is empty, it means the finalized features are absent/unavailable. -
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
-
hashCode
public int hashCode() -
toString
-