public final class JmsAck extends Object
Message produced by the current JmsSession| Constructor and Description |
|---|
JmsAck() |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(JmsConnection connection,
String ackId)
Allows the user to perform an ACK when the
AckMode.MANUAL mode is elected while consuming the Message. |
public void ack(@Connection
JmsConnection connection,
@Summary(value="The AckId of the Message to ACK")
String ackId)
throws JmsExtensionException
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.
The ackId must refer to a JmsSession created using the current JmsConnection.
If the JmsSession or JmsConnection were closed, the ACK will fail.
If the ackId does not belong to a JmsSession created using the current JmsConnection
connection - the JmsConnection that created the JmsSession over which the ACK will be performedackId - the JmsSession.getAckId()JmsExtensionException - if the JmsSession or JmsConnection were closed, or if the ID doesn't belong
to a session of the current connectionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.