public AcknowledgeType get(long offset) {
        return acknowledgements.get(offset);
    }
Gets the acknowledgement type for an offset.

@param offset The record offset.
@return The AcknowledgeType, or null if no acknowledgement is present.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java