Package io.opencensus.stats
Class View.AggregationWindow.Interval
- java.lang.Object
-
- io.opencensus.stats.View.AggregationWindow
-
- io.opencensus.stats.View.AggregationWindow.Interval
-
- Direct Known Subclasses:
AutoValue_View_AggregationWindow_Interval
- Enclosing class:
- View.AggregationWindow
@Deprecated @Immutable public abstract static class View.AggregationWindow.Interval extends View.AggregationWindow
Deprecated.since 0.13. In the future allView
s will be cumulative.Interval (finite interval) timeAggregationWindow
.- Since:
- 0.8
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.stats.View.AggregationWindow
View.AggregationWindow.Cumulative, View.AggregationWindow.Interval
-
-
Constructor Summary
Constructors Constructor Description Interval()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static View.AggregationWindow.Interval
create(Duration duration)
Deprecated.Constructs an intervalAggregationWindow
that has a finite explicitDuration
.abstract Duration
getDuration()
Deprecated.Returns theDuration
associated with thisInterval
.<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.
-
-
-
Field Detail
-
ZERO
private static final Duration ZERO
Deprecated.
-
-
Method Detail
-
getDuration
public abstract Duration getDuration()
Deprecated.Returns theDuration
associated with thisInterval
.- Returns:
- a
Duration
. - Since:
- 0.8
-
create
public static View.AggregationWindow.Interval create(Duration duration)
Deprecated.Constructs an intervalAggregationWindow
that has a finite explicitDuration
.The
Duration
should be able to round to milliseconds. Currently interval window cannot have smallerDuration
such as microseconds or nanoseconds.- Returns:
- an interval
AggregationWindow
. - Since:
- 0.8
-
match
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)
Deprecated.Description copied from class:View.AggregationWindow
Applies the given match function to the underlying data type.- Specified by:
match
in classView.AggregationWindow
-
-