code: public boolean hasCapacity(int priority)
     {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "hasCapacity", ""+priority);
  
        boolean result;
        synchronized(queueMonitor)
        {
           result = priority >= lowestPriorityWithCapacity;
        }
  
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "hasCapacity", ""+result);
        return result;
     }
docs: Checks to see if a given priority level has the capacity to accept another
  message to be queued.
  @param priority
  @return boolean