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
Fields inherited from interface io.micronaut.jms.listener.JMSListenerSuccessHandler
DEFAULT_POSITION
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
-
Field Details
-
POSITION
public static final int POSITION- See Also:
-
-
Constructor Details
-
TransactionalJMSListenerSuccessHandler
public TransactionalJMSListenerSuccessHandler()
-
-
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 interfaceJMSListenerSuccessHandler
- Parameters:
session
- - theSession
theJMSListener
is bound to.message
- - theMessage
that was processed.- Throws:
javax.jms.JMSException
- if any exception occurs while handling the message.
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceJMSListenerSuccessHandler
- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-