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 theAdmin.describeFeatures(DescribeFeaturesOptions)
API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
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.
-
-