code: public synchronized String[] dumpQueuedThreads()
     {
        List<String> result = new ArrayList<String>();
  
        if (pool != null && pool.getPermits().hasQueuedThreads())
        {
           Collection<Thread> queuedThreads = new ArrayList<Thread>(pool.getPermits().getQueuedThreads());
           for (Thread t : queuedThreads)
           {
              result.add(dumpQueuedThread(t));
           }
        }
  
        return result.toArray(new String[result.size()]);
     }
docs: {@inheritDoc}