{
}
public void methodReceived(AMQStateManager stateManager, TxRollbackBody body, final int channelId) throws AMQException
{
final AMQProtocolSession session = stateManager.getProtocolSession();
try
{
AMQChannel channel = session.getChannel(channelId);
if (channel == null)
{
throw body.getChannelNotFoundException(channelId);
}
final MethodRegistry methodRegistry = session.getMethodRegistry();
final AMQMethodBody responseBody = methodRegistry.createTxRollbackOkBody();
Runnable task = new Runnable()
{
public void run()
{
session.writeFrame(responseBody.generateFrame(channelId));
}
};
channel.rollback(task);