Interface JMSListenerSuccessHandler

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Subinterfaces:
GlobalJMSListenerSuccessHandler
All Known Implementing Classes:
AcknowledgingJMSListenerSuccessHandler, TransactionalJMSListenerSuccessHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JMSListenerSuccessHandler extends io.micronaut.core.order.Ordered
Handles an action after a message has been received and processed by a JMSListener.
Since:
2.1.1
Author:
Elliott Pope
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
    void
    handle(@NonNull javax.jms.Session session, @NonNull javax.jms.Message message)
    Handle the successfully processed message.
  • Field Details

  • Method Details

    • handle

      void handle(@NonNull @NonNull javax.jms.Session session, @NonNull @NonNull javax.jms.Message message) throws javax.jms.JMSException
      Handle the successfully processed message.
      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.
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered