@Override
    public synchronized byte[] generate(long position) {
        buf.clear();
        buf.putLong(position + startOffset);
        byte[] result = new byte[size];
        System.arraycopy(buf.array(), 0, result, 0, Math.min(buf.array().length, result.length));
        return result;
    }
A PayloadGenerator which generates a sequentially increasing payload.

The generated number will wrap around to 0 after the maximum value is reached.
Payloads bigger than 8 bytes will always just be padded with zeros after byte 8.
trogdor/src/main/java/org/apache/kafka/trogdor/workload/SequentialPayloadGenerator.java