Interface EvaluationWindow.Builder

  • Method Details

    • wallClockWindow

      EvaluationWindow.Builder wallClockWindow(WallClockWindow wallClockWindow)

      A wall clock window, which aligns the evaluated range to fixed clock boundaries that match the alarm's period, such as the top of the hour, midnight, or the start of the calendar week.

      Parameters:
      wallClockWindow - A wall clock window, which aligns the evaluated range to fixed clock boundaries that match the alarm's period, such as the top of the hour, midnight, or the start of the calendar week.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wallClockWindow

      default EvaluationWindow.Builder wallClockWindow(Consumer<WallClockWindow.Builder> wallClockWindow)

      A wall clock window, which aligns the evaluated range to fixed clock boundaries that match the alarm's period, such as the top of the hour, midnight, or the start of the calendar week.

      This is a convenience method that creates an instance of the WallClockWindow.Builder avoiding the need to create one manually via WallClockWindow.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to wallClockWindow(WallClockWindow).

      Parameters:
      wallClockWindow - a consumer that will call methods on WallClockWindow.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • slidingWindow

      EvaluationWindow.Builder slidingWindow(SlidingWindow slidingWindow)

      A sliding window, which advances each time the alarm is evaluated, forming a rolling time window. This is the default evaluation window.

      Parameters:
      slidingWindow - A sliding window, which advances each time the alarm is evaluated, forming a rolling time window. This is the default evaluation window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slidingWindow

      default EvaluationWindow.Builder slidingWindow(Consumer<SlidingWindow.Builder> slidingWindow)

      A sliding window, which advances each time the alarm is evaluated, forming a rolling time window. This is the default evaluation window.

      This is a convenience method that creates an instance of the SlidingWindow.Builder avoiding the need to create one manually via SlidingWindow.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to slidingWindow(SlidingWindow).

      Parameters:
      slidingWindow - a consumer that will call methods on SlidingWindow.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: