@Override
    public int writeTo(TransferableChannel channel, int position, int length) throws IOException {
        return records.writeTo(channel, position, length);
    }
A wrapper of {@link Records} which will run the specified release hook when {@link #release()} is called.
clients/src/main/java/org/apache/kafka/common/record/PooledRecords.java