Class EndpointMessagingVersions


  • public class EndpointMessagingVersions
    extends java.lang.Object
    Map of hosts to their known current messaging versions.
    • Field Detail

      • minClusterVersion

        public volatile int minClusterVersion
    • Constructor Detail

      • EndpointMessagingVersions

        public EndpointMessagingVersions()
    • Method Detail

      • set

        public int set​(InetAddressAndPort endpoint,
                       int version)
        Returns:
        the last version associated with address, or @param version if this is the first such version
      • get

        public int get​(java.lang.String endpoint)
                throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • getRaw

        public int getRaw​(InetAddressAndPort endpoint)
        Returns the messaging-version exactly as announced by the given endpoint.