/** * Equivalent to getCommittedCommand(index, -1); * * @param index must be > 0. * @return the non-null Command at index. */ public Command getCommittedCommand(int index) throws InterruptedException, GondolaException, TimeoutException { return getCommittedCommand(index, -1); }
while (true) { try { command = shard.getCommittedCommand(appliedIndex + 1, 1000); if (changeLogConsumer != null) { Timer.Context time = timer.time();