Class FinalizedVersionRange

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

public class FinalizedVersionRange extends Object
Represents a range of version levels supported by every broker in a cluster for some feature.
  • Constructor Details

    • FinalizedVersionRange

      public FinalizedVersionRange(short minVersionLevel, short maxVersionLevel)
      Raises an exception unless the following condition is met: minVersionLevel >= 1 and maxVersionLevel >= 1 and maxVersionLevel >= minVersionLevel.
      Parameters:
      minVersionLevel - The minimum version level value.
      maxVersionLevel - The maximum version level value.
      Throws:
      IllegalArgumentException - Raised when the condition described above is not met.
  • Method Details

    • minVersionLevel

      public short minVersionLevel()
    • maxVersionLevel

      public short maxVersionLevel()
    • 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