public boolean isCompleted() {
        return acknowledgeErrorCode != null;
    }
Whether the acknowledgements were sent to the broker and a response received.

@return Whether the acknowledgements were sent to the broker and a response received
clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java