Class SloWindow


public class SloWindow extends ObjectWithJsonToString
The time window over which an SloCriteria is evaluated. Two mutually exclusive forms are supported (v1):
  • SloWindow.Type.EXPLICIT — an absolute [fromEpochMillis, toEpochMillis] range. Both bounds are required.
  • SloWindow.Type.LOOKBACK — a trailing window of lookbackMillis ending at evaluation time (now - lookbackMillis up to now), resolved by the SloEvaluator against the controllable clock.

The window is always already-elapsed: the evaluator never blocks waiting for the window to close. An EXPERIMENT-relative window is intentionally deferred.

  • Constructor Details

    • SloWindow

      public SloWindow()
  • Method Details

    • explicit

      public static SloWindow explicit(long fromEpochMillis, long toEpochMillis)
    • lookback

      public static SloWindow lookback(long lookbackMillis)
    • getType

      public SloWindow.Type getType()
    • withType

      public SloWindow withType(SloWindow.Type type)
    • getFromEpochMillis

      public Long getFromEpochMillis()
    • withFromEpochMillis

      public SloWindow withFromEpochMillis(Long fromEpochMillis)
    • getToEpochMillis

      public Long getToEpochMillis()
    • withToEpochMillis

      public SloWindow withToEpochMillis(Long toEpochMillis)
    • getLookbackMillis

      public Long getLookbackMillis()
    • withLookbackMillis

      public SloWindow withLookbackMillis(Long lookbackMillis)