public static SessionWindows ofInactivityGapWithNoGrace(final Duration inactivityGap) {
        return ofInactivityGapAndGrace(inactivityGap, ofMillis(NO_GRACE_PERIOD));
    }
Creates a new window specification with the specified inactivity gap.
<p>
Note that new events may change the boundaries of session windows, so aggressive
close times can lead to surprising results in which an out-of-order event is rejected and then
a subsequent event moves the window boundary forward.
<p>
CAUTION: Using this method implicitly sets the grace period to zero, which means that any out-of-order
records arriving after the window ends are considered late and will be dropped.

@param inactivityGap the gap of inactivity between sessions
@return a window definition with the window size and no grace period. Note that this means out-of-order records arriving after the window end will be dropped
@throws IllegalArgumentException if {@code inactivityGap} is zero or negative or can't be represented as {@code long milliseconds}
streams/src/main/java/org/apache/kafka/streams/kstream/SessionWindows.java