Class AMQPFederationCapabilities
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationCapabilities
Capabilities class that provides a reconciliation between what the remote offered as compared to what
this federation instance desired in order to determine what features can and cannot be used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the federation version in use on the local side of the connection..intReturns the federation version in use on the remote side of the connection..initialize(org.apache.qpid.proton.engine.Link controlLink) Initialize the federation versions all federation capabilities using the state of the opened control link to match on locally set desired capabilities sent to the remote and remotely offered capabilities.booleanReturnstrueif federation address receivers can use FQQN source addresses or only legacy style..
-
Constructor Details
-
AMQPFederationCapabilities
public AMQPFederationCapabilities()
-
-
Method Details
-
initialize
Initialize the federation versions all federation capabilities using the state of the opened control link to match on locally set desired capabilities sent to the remote and remotely offered capabilities.We cannot use any feature that was not indicated as locally desired when offered by the remote.
- Parameters:
controlLink- The federation control link on the source or target side of the connection.- Returns:
- this federation capabilities instance fully initialized.
-
getLocalVersion
public int getLocalVersion()Returns the federation version in use on the local side of the connection..- Returns:
- the federation version in use on the local side of the connection.
-
getRemoteVersion
public int getRemoteVersion()Returns the federation version in use on the remote side of the connection..- Returns:
- the federation version in use on the remote side of the connection.
-
isUseFQQNAddressSubscriptions
public boolean isUseFQQNAddressSubscriptions()Returnstrueif federation address receivers can use FQQN source addresses or only legacy style..- Returns:
trueif federation address receivers can use FQQN source addresses or only legacy style.
-