Package io.micronaut.jms.listener
Interface JMSListenerSuccessHandler
- All Superinterfaces:
io.micronaut.core.order.Ordered
- All Known Subinterfaces:
GlobalJMSListenerSuccessHandler
- All Known Implementing Classes:
AcknowledgingJMSListenerSuccessHandler
,TransactionalJMSListenerSuccessHandler
- 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 JMSListenerSuccessHandler
extends io.micronaut.core.order.Ordered
Handles an action after a message has been received and processed by a
JMSListener
.- Since:
- 2.1.1
- Author:
- Elliott Pope
- See Also:
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
-
Field Details
-
DEFAULT_POSITION
static final int DEFAULT_POSITION- See Also:
-
-
Method Details
-
handle
void handle(@NonNull @NonNull javax.jms.Session session, @NonNull @NonNull javax.jms.Message message) throws javax.jms.JMSException Handle the successfully processed message.- 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
default int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-