Package org.apache.cassandra.net
Class EndpointMessagingVersions
java.lang.Object
org.apache.cassandra.net.EndpointMessagingVersions
Map of hosts to their known current messaging versions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintget(InetAddressAndPort endpoint) Returns the messaging-version as announced by the given node but capped to the min of the version as announced by the node andMessagingService.current_version.intgetRaw(InetAddressAndPort endpoint) Returns the messaging-version exactly as announced by the given endpoint.booleanknows(InetAddressAndPort endpoint) voidreset(InetAddressAndPort endpoint) intset(InetAddressAndPort endpoint, int version)
-
Field Details
-
minClusterVersion
public volatile int minClusterVersion
-
-
Constructor Details
-
EndpointMessagingVersions
public EndpointMessagingVersions()
-
-
Method Details
-
set
- Returns:
- the last version associated with address, or @param version if this is the first such version
-
reset
-
get
Returns the messaging-version as announced by the given node but capped to the min of the version as announced by the node andMessagingService.current_version. -
get
- Throws:
UnknownHostException
-
getRaw
Returns the messaging-version exactly as announced by the given endpoint. -
knows
-