{
Heap nodeHeap = getHeap(sNodeName);
if (nodeHeap == null)
{
throw new UncheckedException("err.queueing.unknownNode", new Object[]
{
sNodeName
});
}
else
{
nodeHeap.add(delivery);
}
break;
}
case ObjectDispatchListener.ALL:
case ObjectDispatchListener.EXCEPT:
for (Lookup.Iterator iter = m_deliverableHeapMap.iterator(); iter.hasNext();)
{
String sCurrNode = (String)iter.next();
if (nDistribution == ObjectDispatchListener.ALL || !sCurrNode.equals(sNodeName))
{
((Heap)iter.getValue()).add(delivery);
}
}
break;
default:
throw new UncheckedException("err.queueing.invalidDistribution", new Object[]
{
Primitive.createInteger(nDistribution)
});
}
}