Package io.micronaut.jms.listener
Class TransactionalJMSListenerErrorHandler
java.lang.Object
io.micronaut.jms.listener.TransactionalJMSListenerErrorHandler
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,JMSListenerErrorHandler
Attempts to rollback a transaction on the given
Session. If it fails then the exception is logged.- Since:
- 3.0.0
- Author:
- Elliott Pope
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TransactionalJMSListenerErrorHandler
public TransactionalJMSListenerErrorHandler()
-
-
Method Details
-
handle
Description copied from interface:JMSListenerErrorHandlerHandles the exception thrown during message processing.- Specified by:
handlein interfaceJMSListenerErrorHandler- Parameters:
session- - theSessiontheJMSListeneris bound to.message- - theMessagethat was processed.ex- - the exception that was thrown.
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered
-