Class AMQPBridgeManagers
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeManagers
Simple AMQP Bridge aggregation tool used to simplify broker connection management of multiple bridges
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBridgeManager(AMQPBridgeBrokerConnectionElement configuration) Adds a new bridge to the collection of managed bridges and starts the newAMQPBridgeManagervoidSignals all bridges that the current connection has dropped, exceptions are ignored.voidconnectionRestored(AMQPSessionContext session) Signal all bridge managers that the connection has been restoredvoidshutdown()Shutdown all bridge managers ignoring any thrown exceptions and clears state from all previously registered manager, new managers can be added after a reset.voidstart()Starts each bridge manager registered in the managers collection.voidstop()Stops each bridge manager registered in the managers collection.
-
Constructor Details
-
AMQPBridgeManagers
-
-
Method Details
-
shutdown
public void shutdown()Shutdown all bridge managers ignoring any thrown exceptions and clears state from all previously registered manager, new managers can be added after a reset. -
start
-
stop
-
addBridgeManager
public void addBridgeManager(AMQPBridgeBrokerConnectionElement configuration) throws ActiveMQException Adds a new bridge to the collection of managed bridges and starts the newAMQPBridgeManager- Parameters:
configuration- The configuration to use when creating a new bridge manager.- Throws:
ActiveMQException
-
connectionRestored
Signal all bridge managers that the connection has been restored- Parameters:
session- The session in which the bridge manager resources will reside.- Throws:
ActiveMQException- if an error occurs during connection restoration.
-
connectionInterrupted
public void connectionInterrupted()Signals all bridges that the current connection has dropped, exceptions are ignored.
-