public void acknowledgeAll(final AcknowledgeType type) {
        batches.forEach((tip, batch) -> batch.acknowledgeAll(type));
    }
Acknowledge all records in the current batch. If any records in the batch already have
been acknowledged, those acknowledgements are not overwritten.

@param type The acknowledge type which indicates whether it was processed successfully
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetch.java