public void onRollback()
{
if(Boolean.TRUE.equals(settled))
{
final Modified modified = new Modified();
modified.setDeliveryFailed(true);
_link.getEndpoint().updateDisposition(_deliveryTag, modified, true);
_link.getEndpoint().sendFlowConditional();
}
}
});
}
else if(outcome instanceof Released)
{
txn.addPostTransactionAction(new ServerTransaction.Action()
{
public void postCommit()
{
_queueEntry.release();
_link.getEndpoint().settle(_deliveryTag);
}
public void onRollback()
{
_link.getEndpoint().settle(_deliveryTag);
}
});
}
else if(outcome instanceof Modified)
{
txn.addPostTransactionAction(new ServerTransaction.Action()
{
public void postCommit()
{
_queueEntry.release();
if(Boolean.TRUE.equals(((Modified)outcome).getDeliveryFailed()))
{
_queueEntry.incrementDeliveryCount();
}
_link.getEndpoint().settle(_deliveryTag);
}
public void onRollback()
{
if(Boolean.TRUE.equals(settled))
{
final Modified modified = new Modified();
modified.setDeliveryFailed(true);
_link.getEndpoint().updateDisposition(_deliveryTag, modified, true);
_link.getEndpoint().sendFlowConditional();
}
}
});