code: public boolean isMaxTasks(String poolName, TaskType type) {
      return getRunningTasks(poolName, type ) >= getMaxSlots(poolName, type);
    }
docs: Is the pool task limit exceeded?
  @param poolName name of the pool
  @param type type of the task to be check
  @return true if the limit is exceeded