Views will be cumulative.@Deprecated @Immutable public abstract static class View.AggregationWindow.Interval extends View.AggregationWindow
AggregationWindow.View.AggregationWindow.Cumulative, View.AggregationWindow.Interval| Modifier and Type | Method and Description |
|---|---|
static View.AggregationWindow.Interval |
create(Duration duration)
Deprecated.
Constructs an interval
AggregationWindow that has a finite explicit Duration. |
abstract Duration |
getDuration()
Deprecated.
Returns the
Duration associated with this Interval. |
<T> T |
match(Function<? super View.AggregationWindow.Cumulative,T> p0,
Function<? super View.AggregationWindow.Interval,T> p1,
Function<? super View.AggregationWindow,T> defaultFunction)
Deprecated.
Applies the given match function to the underlying data type.
|
public abstract Duration getDuration()
Duration associated with this Interval.Duration.public static View.AggregationWindow.Interval create(Duration duration)
AggregationWindow that has a finite explicit Duration.
The Duration should be able to round to milliseconds. Currently interval window
cannot have smaller Duration such as microseconds or nanoseconds.
AggregationWindow.public final <T> T match(Function<? super View.AggregationWindow.Cumulative,T> p0, Function<? super View.AggregationWindow.Interval,T> p1, Function<? super View.AggregationWindow,T> defaultFunction)
View.AggregationWindowmatch in class View.AggregationWindow