public void add(Procedure<?> proc, boolean addToFront) {
    if (addToFront) {
      runnables.addFirst(proc);
    } else {
      runnables.addLast(proc);
    }
  }
@param proc must not be null
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/Queue.java