public class EndpointMessagingVersions
extends java.lang.Object
Constructor and Description |
---|
EndpointMessagingVersions() |
Modifier and Type | Method and Description |
---|---|
int |
get(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 and
MessagingService.current_version . |
int |
get(java.lang.String endpoint) |
int |
getRaw(InetAddressAndPort endpoint)
Returns the messaging-version exactly as announced by the given endpoint.
|
boolean |
knows(InetAddressAndPort endpoint) |
void |
reset(InetAddressAndPort endpoint) |
int |
set(InetAddressAndPort endpoint,
int version) |
public int set(InetAddressAndPort endpoint, int version)
public void reset(InetAddressAndPort endpoint)
public int get(InetAddressAndPort endpoint)
MessagingService.current_version
.public int get(java.lang.String endpoint) throws java.net.UnknownHostException
java.net.UnknownHostException
public int getRaw(InetAddressAndPort endpoint)
public boolean knows(InetAddressAndPort endpoint)
Copyright © 2009-2021 The Apache Software Foundation