Class CompositeJmsExceptionListener

java.lang.Object
org.mule.jms.commons.internal.connection.exception.CompositeJmsExceptionListener
All Implemented Interfaces:
jakarta.jms.ExceptionListener

public class CompositeJmsExceptionListener extends Object implements jakarta.jms.ExceptionListener
Composite pattern implementation for ExceptionListener. This gives the capability of register multiple ExceptionListener for the same exception notification, this is useful to be able to notify all the JmsListener that has been created with the same JmsConnection.
Since:
1.0
  • Constructor Details

    • CompositeJmsExceptionListener

      public CompositeJmsExceptionListener()
  • Method Details

    • onException

      public void onException(jakarta.jms.JMSException exception)
      Specified by:
      onException in interface jakarta.jms.ExceptionListener
    • registerExceptionListener

      public void registerExceptionListener(jakarta.jms.ExceptionListener exceptionListener)
      Registers a ExceptionListener to be notified if an connection error occurs
      Parameters:
      exceptionListener - The listener to register
    • removeExceptionListener

      public void removeExceptionListener(jakarta.jms.ExceptionListener exceptionListener)