synchronized (this)
{
this.queueDestroyed = true;
}
Transaction tx = new BindingsTransactionImpl(storageManager);
try
{
postOffice.removeBinding(name, tx);
deleteAllReferences();
destroyPaging();
if (removeConsumers)
{
for (ConsumerHolder consumerHolder : consumerList)
{
consumerHolder.consumer.disconnect();
}
}
if (isDurable())
{
storageManager.deleteQueueBinding(tx.getID(), getID());
tx.setContainsPersistent();
}
tx.commit();
}
catch (Exception e)
{
tx.rollback();
throw e;
}
}