@Override
    public byte[] generate(long position) {
        byte[] next = new byte[size];
        for (int i = 0; i < next.length; i += value.length) {
            System.arraycopy(value, 0, next, i, Math.min(next.length - i, value.length));
        }
        return next;
    }
A PayloadGenerator which always generates a constant payload.
trogdor/src/main/java/org/apache/kafka/trogdor/workload/ConstantPayloadGenerator.java