Package io.micronaut.jms.listener
Class LoggingJMSListenerErrorHandler
java.lang.Object
io.micronaut.jms.listener.LoggingJMSListenerErrorHandler
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,JMSListenerErrorHandler
Default logger for all
JMSListener
s. Logs any exception that occurs while receiving, processing, or handling
the message- Since:
- 3.0.0
- Author:
- Elliott Pope
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
LoggingJMSListenerErrorHandler
public LoggingJMSListenerErrorHandler()
-
-
Method Details
-
handle
Description copied from interface:JMSListenerErrorHandler
Handles the exception thrown during message processing.- Specified by:
handle
in interfaceJMSListenerErrorHandler
- Parameters:
session
- - theSession
theJMSListener
is bound to.message
- - theMessage
that was processed.ex
- - the exception that was thrown.
-