@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)
Constructs an interval
AggregationWindow that has a finite explicit Duration . |
abstract Duration |
getDuration()
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)
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.AggregationWindow
match
in class View.AggregationWindow