Interface TimeWindow<T>

Type Parameters:
T - the object type of the source collection.
All Superinterfaces:
Iterable<T>

public interface TimeWindow<T> extends Iterable<T>
Supports iteration over a collection of elements that fall within the given start and end timestamps.
  • Method Details

    • getStartTimeMs

      long getStartTimeMs()
      Returns the start time of this window.
      Returns:
      the start time of the window.
    • getEndTimeMs

      long getEndTimeMs()
      Returns the end time of this window.
      Returns:
      the end time of this window.
    • size

      int size()
      Returns the size of the iterable collection.
      Returns:
      the size of the iterable collection.
    • getWindowContents

      List<T> getWindowContents()
      Retrieves the items of the window as a list.
      Returns:
      a list of the items in the window.