public void setExclusive(boolean exclusive)
{
if(exclusive)
{
ExclusivityPolicy currentValue = _queue.getExclusive();
if(currentValue == null || currentValue == ExclusivityPolicy.NONE)
{
_queue.setAttribute(Queue.EXCLUSIVE, currentValue, ExclusivityPolicy.CONTAINER);
}
}
else
{
ExclusivityPolicy currentValue = _queue.getExclusive();
if(currentValue != null && currentValue != ExclusivityPolicy.NONE)
{
_queue.setAttribute(Queue.EXCLUSIVE, currentValue, ExclusivityPolicy.NONE);
}
}