}
public void methodReceived(AMQStateManager stateManager, AMQMethodEvent<BasicAckBody> evt) throws AMQException
{
AMQProtocolSession protocolSession = stateManager.getProtocolSession();
BasicAckBody body = evt.getMethod();
if (_log.isDebugEnabled())
{
_log.debug("Ack(Tag:" + body.deliveryTag + ":Mult:" + body.multiple + ") received on channel " + evt.getChannelId());
}
final AMQChannel channel = protocolSession.getChannel(evt.getChannelId());
if (channel == null)
{
throw body.getChannelNotFoundException(evt.getChannelId());
}
// this method throws an AMQException if the delivery tag is not known
channel.acknowledgeMessage(body.deliveryTag, body.multiple);
}