Class AMQPFederationAddressConsumer
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationConsumer
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationAddressConsumer
- All Implemented Interfaces:
FederationConsumer
- Direct Known Subclasses:
AMQPFederationAddressBindingsConsumer, AMQPFederationAddressConduitConsumer
Base AMQP federation address consumer implementation that provides the common functionality that all
federation address consumers must provide with extension points to customize the actual message routing
behavior as needed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classWrapper around the standard receiver context that provides federation specific entry points and customizes inbound delivery handling for this Address receiver. -
Field Summary
Fields inherited from class AMQPFederationConsumer
closed, configuration, connection, consumerInfo, DEFAULT_OUTCOME, federation, initialized, LINK_SEQUENCE_ID, manager, metrics, OUTCOMES, protonReceiver, receiver, remoteCloseHandler, remoteCloseInterceptor, remoteOpenHandler, session, transformer -
Constructor Summary
ConstructorsConstructorDescriptionAMQPFederationAddressConsumer(AMQPFederationAddressPolicyManager manager, AMQPFederationConsumerConfiguration configuration, AMQPSessionContext session, FederationConsumerInfo consumerInfo, AMQPFederationMetrics.ConsumerMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AMQPFederationAddressConsumer.AMQPFederatedAddressDeliveryHandlercreateDeliveryHandler(org.apache.qpid.proton.engine.Receiver receiver) Create the delivery handler instance that will assigned as the context on the AMQP receiver link instance.protected final voidCalled during the initialization of the consumer to trigger an asynchronous link attach of the underlying AMQP receiver that backs this federation consumer.final intReturns the idle timeout value that is used applied to quiesced receivers.Methods inherited from class AMQPFederationConsumer
close, getConfiguration, getConsumerInfo, getFederation, getMessagesReceived, getPolicyManager, getRole, initialize, isClosed, isInitialized, recordFederatedMessageReceived, remoteLinkClosedInterceptor, setRemoteClosedHandler, setRemoteOpenHandler, signalPluginAfterFederationConsumerMessageHandled, signalPluginBeforeFederationConsumerMessageHandled, startAsync, stopAsync
-
Constructor Details
-
AMQPFederationAddressConsumer
public AMQPFederationAddressConsumer(AMQPFederationAddressPolicyManager manager, AMQPFederationConsumerConfiguration configuration, AMQPSessionContext session, FederationConsumerInfo consumerInfo, AMQPFederationMetrics.ConsumerMetrics metrics)
-
-
Method Details
-
getReceiverIdleTimeout
public final int getReceiverIdleTimeout()Description copied from class:AMQPFederationConsumerReturns the idle timeout value that is used applied to quiesced receivers.- Specified by:
getReceiverIdleTimeoutin classAMQPFederationConsumer- Returns:
- the idle timeout value that is used applied to quiesced receivers
-
doCreateReceiver
protected final void doCreateReceiver()Description copied from class:AMQPFederationConsumerCalled during the initialization of the consumer to trigger an asynchronous link attach of the underlying AMQP receiver that backs this federation consumer. The new receiver should be initialized in a started state. This method executes on the connection thread and should not block. This method will be called from the thread of the connection this consumer operates on.- Specified by:
doCreateReceiverin classAMQPFederationConsumer
-
createDeliveryHandler
protected abstract AMQPFederationAddressConsumer.AMQPFederatedAddressDeliveryHandler createDeliveryHandler(org.apache.qpid.proton.engine.Receiver receiver) Create the delivery handler instance that will assigned as the context on the AMQP receiver link instance.- Parameters:
receiver- TheReceiverinstance that the returned delivery handler is bound to.- Returns:
- a new delivery handler that will route incoming messages to their intended target.
-