code: private <T> void submitCommand(CommandRequest request, CompletableFuture<T> future) {
      submit(new CommandAttempt<>(sequencer.nextRequest(), request, future));
    }
docs: Submits a command request to the cluster.