public final class JmsAcknowledge extends Object
Message produced by the current JmsSession| Constructor and Description |
|---|
JmsAcknowledge(JmsSessionManager sessionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(String ackId,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
Allows the user to perform an ACK when the
AckMode.MANUAL mode is elected while consuming the Message. |
void |
recoverSession(String ackId,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
Allows the user to perform a session recover when the
AckMode.MANUAL mode is elected while consuming the
Message. |
public JmsAcknowledge(JmsSessionManager sessionManager)
@Throws(value=JmsAckErrorTypeProvider.class) public void ack(@Summary(value="The AckId of the Message to ACK") String ackId, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
AckMode.MANUAL mode is elected while consuming the Message.
As per JMS Spec, performing an ACK over a single Message automatically works as an ACK for all the Messages
produced in the same JmsSession.ackId - The AckId of the Message to ACKJmsAckException - if the JmsSession or JmsConnection were closed, or if the ID doesn't belong
to a session of the current connection@Throws(value=JmsSessionRecoverErrorTypeProvider.class) public void recoverSession(String ackId, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
AckMode.MANUAL mode is elected while consuming the
Message.
As per JMS Spec, performing a session recover automatically will redeliver all the consumed messages that had not being
acknowledged before this recover.ackId - The AckId of the Message Session to recoverCopyright © 2020. All rights reserved.