This class contains the different Kafka versions.
Right now, we use them for upgrades - users can configure the version of the API brokers will use to communicate between themselves.
This is only for inter-broker communications - when communicating with clients, the client decides on the API version.
Note that the ID we initialize for each version is important.
We consider a version newer than another, if it has a higher ID (to avoid depending on lexicographic order)
This class contains the different Kafka versions. Right now, we use them for upgrades - users can configure the version of the API brokers will use to communicate between themselves. This is only for inter-broker communications - when communicating with clients, the client decides on the API version.
Note that the ID we initialize for each version is important. We consider a version newer than another, if it has a higher ID (to avoid depending on lexicographic order)