hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/StateContext.java
public void addCommand(SCMCommand command) {
    lock.lock();
    try {
      commandQueue.add(command);
    } finally {
      lock.unlock();
    }
  }
/**
   * Adds a command to the State Machine queue.
   *
   * @param command - SCMCommand.
   */
Adds a command to the State Machine queue.
@param command - SCMCommand.
Adds a command to the State Machine queue . @param command - SCMCommand .
public void addCommand(SCMCommand command) {
    lock.lock();
    try {
      commandQueue.add(command);
    } finally {
      lock.unlock();
    }
  }
public void addCommand ( SCMCommand command ) { lock . lock ( ) ; try { commandQueue . add ( command ) ; } finally { lock . unlock ( ) ; } }
Adds a command to the State Machine queue.
Adds a command to the State Machine queue .