Package io.micronaut.jms.listener
Class TransactionalJMSListenerSuccessHandler
java.lang.Object
io.micronaut.jms.listener.TransactionalJMSListenerSuccessHandler
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,JMSListenerSuccessHandler
public class TransactionalJMSListenerSuccessHandler
extends Object
implements JMSListenerSuccessHandler
Commits a JMS transaction upon successful handling of a message.
- Since:
- 3.0.0
- Author:
- Elliott Pope
-
Field Summary
FieldsFields inherited from interface io.micronaut.jms.listener.JMSListenerSuccessHandler
DEFAULT_POSITIONFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
POSITION
public static final int POSITION- See Also:
-
-
Constructor Details
-
TransactionalJMSListenerSuccessHandler
public TransactionalJMSListenerSuccessHandler()
-
-
Method Details
-
handle
public void handle(jakarta.jms.Session session, jakarta.jms.Message message) throws jakarta.jms.JMSException Description copied from interface:JMSListenerSuccessHandlerHandle the successfully processed message.- Specified by:
handlein interfaceJMSListenerSuccessHandler- Parameters:
session- - theSessiontheJMSListeneris bound to.message- - theMessagethat was processed.- Throws:
jakarta.jms.JMSException- if any exception occurs while handling the message.
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceJMSListenerSuccessHandler- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered
-