Interface ActiveMQServerFederationPlugin
-
- All Superinterfaces:
ActiveMQServerBasePlugin
- All Known Subinterfaces:
ActiveMQServerPlugin
public interface ActiveMQServerFederationPlugin extends ActiveMQServerBasePlugin
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
afterCloseFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer)
After a federated queue consumer is closeddefault void
afterCreateFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer)
After a federated queue consumer is createddefault void
afterFederatedQueueConsumerMessageHandled(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer, Message message)
After a federated queue consumer handles a messagedefault void
beforeCloseFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer)
Before a federated queue consumer is closeddefault void
beforeCreateFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedConsumerKey key)
Before a federated queue consumer is createddefault void
beforeFederatedQueueConsumerMessageHandled(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer, Message message)
Before a federated queue consumer handles a messagedefault boolean
federatedAddressConditionalCreateConsumer(org.apache.activemq.artemis.core.server.Queue queue)
Conditionally create a federated queue consumer for a federated address.default boolean
federatedAddressConditionalCreateDivertConsumer(org.apache.activemq.artemis.core.postoffice.impl.DivertBinding divertBinding, org.apache.activemq.artemis.core.postoffice.QueueBinding queueBinding)
default boolean
federatedQueueConditionalCreateConsumer(org.apache.activemq.artemis.core.server.ServerConsumer consumer)
Conditionally create a federated queue consumer for a federated queue.default void
federationStreamStarted(org.apache.activemq.artemis.core.server.federation.FederationStream stream)
After a federation stream has been starteddefault void
federationStreamStopped(org.apache.activemq.artemis.core.server.federation.FederationStream stream)
After a federation stream has been stopped-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
init, registered, setInit, unregistered
-
-
-
-
Method Detail
-
federationStreamStarted
default void federationStreamStarted(org.apache.activemq.artemis.core.server.federation.FederationStream stream) throws ActiveMQException
After a federation stream has been started- Parameters:
stream
-- Throws:
ActiveMQException
-
federationStreamStopped
default void federationStreamStopped(org.apache.activemq.artemis.core.server.federation.FederationStream stream) throws ActiveMQException
After a federation stream has been stopped- Parameters:
stream
-- Throws:
ActiveMQException
-
beforeCreateFederatedQueueConsumer
default void beforeCreateFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedConsumerKey key) throws ActiveMQException
Before a federated queue consumer is created- Parameters:
key
-- Throws:
ActiveMQException
-
afterCreateFederatedQueueConsumer
default void afterCreateFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer) throws ActiveMQException
After a federated queue consumer is created- Parameters:
consumer
-- Throws:
ActiveMQException
-
beforeCloseFederatedQueueConsumer
default void beforeCloseFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer) throws ActiveMQException
Before a federated queue consumer is closed- Parameters:
consumer
-- Throws:
ActiveMQException
-
afterCloseFederatedQueueConsumer
default void afterCloseFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer) throws ActiveMQException
After a federated queue consumer is closed- Parameters:
consumer
-- Throws:
ActiveMQException
-
beforeFederatedQueueConsumerMessageHandled
default void beforeFederatedQueueConsumerMessageHandled(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer, Message message) throws ActiveMQException
Before a federated queue consumer handles a message- Parameters:
consumer
-message
-- Throws:
ActiveMQException
-
afterFederatedQueueConsumerMessageHandled
default void afterFederatedQueueConsumerMessageHandled(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer, Message message) throws ActiveMQException
After a federated queue consumer handles a message- Parameters:
consumer
-message
-- Throws:
ActiveMQException
-
federatedAddressConditionalCreateConsumer
default boolean federatedAddressConditionalCreateConsumer(org.apache.activemq.artemis.core.server.Queue queue) throws ActiveMQException
Conditionally create a federated queue consumer for a federated address. This allows custom logic to be inserted to decide when to create federated queue consumers- Parameters:
queue
-- Returns:
- if true, create the consumer, else if false don't create
- Throws:
ActiveMQException
-
federatedAddressConditionalCreateDivertConsumer
default boolean federatedAddressConditionalCreateDivertConsumer(org.apache.activemq.artemis.core.postoffice.impl.DivertBinding divertBinding, org.apache.activemq.artemis.core.postoffice.QueueBinding queueBinding) throws ActiveMQException
- Throws:
ActiveMQException
-
federatedQueueConditionalCreateConsumer
default boolean federatedQueueConditionalCreateConsumer(org.apache.activemq.artemis.core.server.ServerConsumer consumer) throws ActiveMQException
Conditionally create a federated queue consumer for a federated queue. This allows custom logic to be inserted to decide when to create federated queue consumers- Parameters:
consumer
-- Returns:
- true, create the consumer, else if false don't create
- Throws:
ActiveMQException
-
-