Class AcknowledgingJMSListenerSuccessHandler

java.lang.Object
io.micronaut.jms.listener.AcknowledgingJMSListenerSuccessHandler
All Implemented Interfaces:
io.micronaut.core.order.Ordered, JMSListenerSuccessHandler

public class AcknowledgingJMSListenerSuccessHandler extends Object implements JMSListenerSuccessHandler
Success handler to acknowledge that the listener has received and processed the message successfully. Handler should be enabled if the listener uses the Session.CLIENT_ACKNOWLEDGE mode.
Since:
3.0.0
Author:
Elliott Pope
  • Constructor Details

    • AcknowledgingJMSListenerSuccessHandler

      public AcknowledgingJMSListenerSuccessHandler()
  • Method Details

    • handle

      public void handle(javax.jms.Session session, javax.jms.Message message) throws javax.jms.JMSException
      Description copied from interface: JMSListenerSuccessHandler
      Handle the successfully processed message.
      Specified by:
      handle in interface JMSListenerSuccessHandler
      Parameters:
      session - - the Session the JMSListener is bound to.
      message - - the Message that was processed.
      Throws:
      javax.jms.JMSException - if any exception occurs while handling the message.