Package io.micronaut.jms.listener
Interface JMSListenerErrorHandler
- All Superinterfaces:
io.micronaut.core.order.Ordered
- All Known Subinterfaces:
GlobalJMSListenerErrorHandler
- All Known Implementing Classes:
LoggingJMSListenerErrorHandler,TransactionalJMSListenerErrorHandler
- 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 JMSListenerErrorHandler
extends io.micronaut.core.order.Ordered
Handles any errors thrown when handling a message on a
JMSListener.- Since:
- 3.0.0
- Author:
- Elliott Pope
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
handle
void handle(@NonNull @NonNull jakarta.jms.Session session, @NonNull @NonNull jakarta.jms.Message message, @NonNull @NonNull Throwable ex) Handles the exception thrown during message processing.- Parameters:
session- - theSessiontheJMSListeneris bound to.message- - theMessagethat was processed.ex- - the exception that was thrown.
-