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.
Interval (finite interval) time
AggregationWindow
.- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.stats.View.AggregationWindow
View.AggregationWindow.Cumulative, View.AggregationWindow.Interval
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Constructs an intervalAggregationWindow
that has a finite explicitDuration
.abstract Duration
Deprecated.Returns theDuration
associated with thisInterval
.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.Applies the given match function to the underlying data type.
-
Field Details
-
ZERO
Deprecated.
-
-
Constructor Details
-
Interval
Interval()Deprecated.
-
-
Method Details
-
getDuration
Deprecated.Returns theDuration
associated with thisInterval
.- Returns:
- a
Duration
. - Since:
- 0.8
-
create
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
-
View
s will be cumulative.