public CompletableFuture<ApiMessage> handleRequest(
        RequestContext context,
        RequestHeader header,
        ApiMessage request,
        long createdTimeMs
    ) {
        RaftRequest.Inbound inboundRequest = new RaftRequest.Inbound(
            context.listenerName,
            header.correlationId(),
            header.apiVersion(),
            request,
            createdTimeMs
        );

        client.handle(inboundRequest);

        return inboundRequest.completion.thenApply(RaftMessage::data);
    }
Shutdown the thread. In addition to stopping any utilized threads, this will
close the {@link KafkaRaftClient} instance.
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClientDriver.java