Package io.micronaut.jms.listener
Class AcknowledgingJMSListenerSuccessHandler
java.lang.Object
io.micronaut.jms.listener.AcknowledgingJMSListenerSuccessHandler
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,JMSListenerSuccessHandler
public class AcknowledgingJMSListenerSuccessHandler
extends Object
implements JMSListenerSuccessHandler
Success handler to acknowledge that the listener has received and processed the message successfully.
Handler should be enabled if the listener uses the
Session.CLIENT_ACKNOWLEDGE
mode.- 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
Modifier and TypeMethodDescriptionvoid
handle
(javax.jms.Session session, javax.jms.Message message) Handle the successfully processed message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.jms.listener.JMSListenerSuccessHandler
getOrder
-
Constructor Details
-
AcknowledgingJMSListenerSuccessHandler
public AcknowledgingJMSListenerSuccessHandler()
-
-
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.
-