Class AmqpListenerContainer
java.lang.Object
org.frankframework.messaging.amqp.AmqpListenerContainer
Run all AMQP listeners that use the same connection in a single Session, for more
efficient use of system resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAllListeners(org.apache.qpid.protonj2.client.exceptions.ClientException ex) booleancloseListener(AmqpListener amqpListener) Return true when last listener is closedbooleanisOpen()voidopenConnection(String connectionName) Open connection for which this instance is managing receivers.voidopenListener(AmqpListener amqpListener) Open a listener in this listener-container.
-
Constructor Details
-
AmqpListenerContainer
public AmqpListenerContainer()
-
-
Method Details
-
openConnection
Open connection for which this instance is managing receivers. This connection needs to be opened before anyAmqpListeners can be registered with this container.- Parameters:
connectionName-- Throws:
LifecycleException
-
isOpen
public boolean isOpen() -
openListener
Open a listener in this listener-container. The listener-container should have an open connection before a listener can be opened, and the listener connection-name should be for the same connection as this listener-container instance.- Parameters:
amqpListener-
-
closeListener
Return true when last listener is closed- Parameters:
amqpListener-- Returns:
-
closeAllListeners
public void closeAllListeners(org.apache.qpid.protonj2.client.exceptions.ClientException ex)
-