/** * Partitions the timestamp space into half-open intervals of the form [N * size + offset, (N + 1) * * size + offset), where 0 is the epoch. * * @throws IllegalArgumentException if offset is not in [0, size) */ public FixedWindows withOffset(Duration offset) { return new FixedWindows(size, offset); }
/** * Partitions the timestamp space into half-open intervals of the form [N * size, (N + 1) * size), * where 0 is the epoch. */ public static FixedWindows of(Duration size) { return new FixedWindows(size, Duration.ZERO); }