void () { int currentProcessedCount = myCommandsProcessedCount; while (currentProcessedCount < myLog.size()) { final LogCommand command = myLog.get(currentProcessedCount++); proceedOneCommand(command); } myCommandsProcessedCount = currentProcessedCount; flushDelayedMessages(); }