Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated method signatures for SessionWindows.ofInactivityGapAndGrace() and JoinWindows.ofTimeDifferenceWithNoGrace()

...

Code Block
languagejava
public class SessionWindows {

    @Deprecated
    public static SessionWindows with(final Duration inactivityGap);

    @Deprecated
    public SessionWindows grace(final Duration afterWindowEnd);
    
    // New
    public static SessionWindows ofInactivityGapWithNoGrace(final Duration inactivityGap);

    // New
    public static JoinWindowsSessionWindows ofInactivityGapAndGrace(final Duration inactivityGap, final Duration afterWindowEnd);
}

...

Code Block
languagejava
public class JoinWindows {

    @Deprecated
    public static JoinWindows of(final Duration timeDifference);

    @Deprecated
    public JoinWindows grace(final Duration afterWindowEnd);
    
    // New
    public static JoinWindows ofTimeDifferenceWithNoGrace(final Duration afterWindowEndtimeDifference);

    // New
    public static JoinWindows ofTimeDifferenceAndGrace(final Duration timeDifference, final Duration afterWindowEnd);
}

...