Interface TimeRangeSpec
- All Known Implementing Classes:
TimeRangeSpec.FixedRange, TimeRangeSpec.NowAnchoredSliding
public sealed interface TimeRangeSpec
permits TimeRangeSpec.FixedRange, TimeRangeSpec.NowAnchoredSliding
Sealed time-range specifier on a
HistorianQueryBindingConfig. Resolved to a concrete
(start, end) pair at each polling tick via resolve(Instant).
Two variants:
TimeRangeSpec.FixedRange— absolute start/end Instants.TimeRangeSpec.NowAnchoredSliding— end = now, start = now − lookback.
Immutable. Thread-safe.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAbsolute start/end.static final recordSliding window anchored at the current tick's "now".static final recordConcrete resolved range. -
Method Summary
Modifier and TypeMethodDescriptionResolve to a concrete (start, end) pair at the suppliednowreference Instant.
-
Method Details
-
resolve
Resolve to a concrete (start, end) pair at the suppliednowreference Instant.
-