code: public boolean isLowOnThreads()
     {
        if (executor instanceof ThreadPoolExecutor)
        {
           final ThreadPoolExecutor tpe = (ThreadPoolExecutor)executor;
           return tpe.getActiveCount() >= tpe.getMaximumPoolSize();
        }
        return false;
     }
docs: Is the pool low on threads ?
  @return True if active threads >= maximum number of threads