code: public boolean isEmpty() throws SIConnectionDroppedException
     {
        synchronized(queueMonitor)
        {
           if (state == CLOSED) throw new SIConnectionDroppedException(TraceNLS.getFormattedMessage(JFapChannelConstants.MSG_BUNDLE, "PRIORITY_QUEUE_PURGED_SICJ0077", null, "PRIORITY_QUEUE_PURGED_SICJ0077"));
           return totalQueueDepth == 0;
        }
     }
docs: Returns true iff this priority queue is empty.
  @throws SIConnectionDroppedException if the priorty queue has been
  closed or purged.
  @return True iff this priority queue is empty.