Class AMQPFederationTarget
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederation
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationTarget
- All Implemented Interfaces:
Federation
This is the receiving side of an AMQP broker federation that occurs over an inbound connection from a remote peer.
The federation target only comes into existence once a remote peer connects and successfully authenticates against a
control link validation address. Only one federation target is allowed per connection.
-
Field Summary
Fields inherited from class AMQPFederation
connected, eventDispatcher, eventProcessor, FEDERATION_INSTANCE_RECORD, linkClosedinterceptors, localAddressPolicyManagers, localQueuePolicyManagers, metrics, name, remoteAddressPolicyManagers, remoteQueuePolicyManagers, scheduler, server, session, state, wildcardConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionAMQPFederationTarget(AMQPRemoteBrokerConnection brokerConnection, String name, AMQPFederationConfiguration configuration, AMQPFederationCapabilities capabilities, AMQPSessionContext session) -
Method Summary
Modifier and TypeMethodDescriptionReturns the federation capabilities that is in effect following negotiation.Returns the federation configuration that is in effect.Returns the session context assigned to this federation instance.Returns the session context assigned to this federation instance.protected voidProvides an entry point for the concrete federation implementation to respond to being initialized.protected voidsignalError(Exception cause) Error signaling API that must be implemented by the specific federation implementation to handle errors encountered during normal operations.protected voidError signaling API that must be implemented by the specific federation implementation to handle error when creating a federation resource such as an outgoing receiver link.Methods inherited from class AMQPFederation
addAddressMatchPolicy, addLinkClosedInterceptor, addQueueMatchPolicy, getMetrics, getName, getRemoteAddressPolicyManager, getRemoteQueuePolicyManager, getScheduler, getServer, getWildcardConfiguration, handleFederationShutdown, handleFederationStarted, handleFederationStopped, initialize, invokeLinkClosedInterceptors, isConnected, isStarted, removeLinkClosedInterceptor, shutdown, signalFederationStarted, signalFederationStopped, start, stop
-
Constructor Details
-
AMQPFederationTarget
public AMQPFederationTarget(AMQPRemoteBrokerConnection brokerConnection, String name, AMQPFederationConfiguration configuration, AMQPFederationCapabilities capabilities, AMQPSessionContext session)
-
-
Method Details
-
getConnectionContext
Description copied from class:AMQPFederationReturns the session context assigned to this federation instance.- Specified by:
getConnectionContextin classAMQPFederation- Returns:
- the session context assigned to this federation instance
-
getCapabilities
Description copied from class:AMQPFederationReturns the federation capabilities that is in effect following negotiation.- Specified by:
getCapabilitiesin classAMQPFederation- Returns:
- the federation capabilities that is in effect following negotiation
-
getSessionContext
Description copied from class:AMQPFederationReturns the session context assigned to this federation instance.- Specified by:
getSessionContextin classAMQPFederation- Returns:
- the session context assigned to this federation instance
-
getConfiguration
Description copied from class:AMQPFederationReturns the federation configuration that is in effect.- Specified by:
getConfigurationin classAMQPFederation- Returns:
- the federation configuration that is in effect
-
handleFederationInitialized
Description copied from class:AMQPFederationProvides an entry point for the concrete federation implementation to respond to being initialized.- Overrides:
handleFederationInitializedin classAMQPFederation- Throws:
ActiveMQException- if an error is thrown during initialization handling.
-
signalResourceCreateError
Description copied from class:AMQPFederationError signaling API that must be implemented by the specific federation implementation to handle error when creating a federation resource such as an outgoing receiver link.- Specified by:
signalResourceCreateErrorin classAMQPFederation- Parameters:
cause- The error that caused the resource creation to fail.
-
signalError
Description copied from class:AMQPFederationError signaling API that must be implemented by the specific federation implementation to handle errors encountered during normal operations.- Specified by:
signalErrorin classAMQPFederation- Parameters:
cause- The error that caused the operation to fail.
-