Interface ActiveMQServerAMQPFederationPlugin
-
- All Superinterfaces:
ActiveMQServerBasePlugin,AMQPFederationBrokerPlugin
public interface ActiveMQServerAMQPFederationPlugin extends AMQPFederationBrokerPlugin
Broker plugin which allows users to intercept federation related events when AMQP federation is configured on the broker.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterCloseFederationConsumer(FederationConsumer consumer)After a consumer for a federated resource is closeddefault voidafterCreateFederationConsumer(FederationConsumer consumer)After a consumer for a federated resource is createddefault voidafterFederationConsumerMessageHandled(FederationConsumer consumer, Message message)After a federation consumer handles a messagedefault voidbeforeCloseFederationConsumer(FederationConsumer consumer)Before a consumer for a federated resource is closeddefault voidbeforeCreateFederationConsumer(FederationConsumerInfo consumerInfo)Before a consumer for a federated resource is createddefault voidbeforeFederationConsumerMessageHandled(FederationConsumer consumer, Message message)Before a federation consumer handles a messagedefault voidfederationStarted(Federation federation)After a federation instance has been starteddefault voidfederationStopped(Federation federation)After a federation instance has been stoppeddefault booleanshouldCreateFederationConsumerForAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo address)Conditionally create a federation consumer for an address that matches the configuration of this server federation.default booleanshouldCreateFederationConsumerForDivert(org.apache.activemq.artemis.core.server.Divert divert, org.apache.activemq.artemis.core.server.Queue queue)Conditionally create a federation consumer for an divert binding that matches the configuration of this server federation.default booleanshouldCreateFederationConsumerForQueue(org.apache.activemq.artemis.core.server.Queue queue)Conditionally create a federation consumer for an address that matches the configuration of this server federation.-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
init, registered, setInit, unregistered
-
-
-
-
Method Detail
-
federationStarted
default void federationStarted(Federation federation) throws ActiveMQException
After a federation instance has been started- Parameters:
federation- TheFederationinstance that is being started.- Throws:
ActiveMQException- if an error occurs during the call.
-
federationStopped
default void federationStopped(Federation federation) throws ActiveMQException
After a federation instance has been stopped- Parameters:
federation- TheFederationinstance that is being stopped.- Throws:
ActiveMQException- if an error occurs during the call.
-
beforeCreateFederationConsumer
default void beforeCreateFederationConsumer(FederationConsumerInfo consumerInfo) throws ActiveMQException
Before a consumer for a federated resource is created- Parameters:
consumerInfo- The information that will be used when creating the federation consumer.- Throws:
ActiveMQException- if an error occurs during the call.
-
afterCreateFederationConsumer
default void afterCreateFederationConsumer(FederationConsumer consumer) throws ActiveMQException
After a consumer for a federated resource is created- Parameters:
consumer- The consumer that was created after a matching federated resource is detected.- Throws:
ActiveMQException- if an error occurs during the call.
-
beforeCloseFederationConsumer
default void beforeCloseFederationConsumer(FederationConsumer consumer) throws ActiveMQException
Before a consumer for a federated resource is closed- Parameters:
consumer- The federation consumer that is going to be closed.- Throws:
ActiveMQException- if an error occurs during the call.
-
afterCloseFederationConsumer
default void afterCloseFederationConsumer(FederationConsumer consumer) throws ActiveMQException
After a consumer for a federated resource is closed- Parameters:
consumer- The federation consumer that has been closed.- Throws:
ActiveMQException- if an error occurs during the call.
-
beforeFederationConsumerMessageHandled
default void beforeFederationConsumerMessageHandled(FederationConsumer consumer, Message message) throws ActiveMQException
Before a federation consumer handles a message- Parameters:
consumer- TheFederationconsumer that is handling a new incoming message.message- TheMessagethat is being handled- Throws:
ActiveMQException- if an error occurs during the call.
-
afterFederationConsumerMessageHandled
default void afterFederationConsumerMessageHandled(FederationConsumer consumer, Message message) throws ActiveMQException
After a federation consumer handles a message- Parameters:
consumer- TheFederationconsumer that is handling a new incoming message.message- TheMessagethat is being handled- Throws:
ActiveMQException- if an error occurs during the call.
-
shouldCreateFederationConsumerForAddress
default boolean shouldCreateFederationConsumerForAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo address) throws ActiveMQExceptionConditionally create a federation consumer for an address that matches the configuration of this server federation. This allows custom logic to be inserted to decide when to create federation consumers- Parameters:
address- The address that matched the federation configuration- Returns:
- if true, create the consumer, else if false don't create
- Throws:
ActiveMQException- if an error occurs during the call.
-
shouldCreateFederationConsumerForQueue
default boolean shouldCreateFederationConsumerForQueue(org.apache.activemq.artemis.core.server.Queue queue) throws ActiveMQExceptionConditionally create a federation consumer for an address that matches the configuration of this server federation. This allows custom logic to be inserted to decide when to create federation consumers- Parameters:
queue- The queue that matched the federation configuration- Returns:
- if true, create the consumer, else if false don't create
- Throws:
ActiveMQException- if an error occurs during the call.
-
shouldCreateFederationConsumerForDivert
default boolean shouldCreateFederationConsumerForDivert(org.apache.activemq.artemis.core.server.Divert divert, org.apache.activemq.artemis.core.server.Queue queue) throws ActiveMQExceptionConditionally create a federation consumer for an divert binding that matches the configuration of this server federation. This allows custom logic to be inserted to decide when to create federation consumers- Parameters:
divert- TheDivertthat matched the federation configurationqueue- TheQueuethat was attached for a divert forwarding address.- Returns:
- if true, create the consumer, else if false don't create
- Throws:
ActiveMQException- if an error occurs during the call.
-
-