@Override
    public String toString() {
        return "RollParams(" +
                "maxSegmentMs=" + maxSegmentMs +
                ", maxSegmentBytes=" + maxSegmentBytes +
                ", maxTimestampInMessages=" + maxTimestampInMessages +
                ", maxOffsetInMessages=" + maxOffsetInMessages +
                ", messagesSize=" + messagesSize +
                ", now=" + now +
                ')';
    }
A class used to hold params required to decide to rotate a log segment or not.
storage/src/main/java/org/apache/kafka/storage/internals/log/RollParams.java