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 allViews 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.Intervalcreate(Duration duration)Deprecated.Constructs an intervalAggregationWindowthat has a finite explicitDuration.abstract DurationgetDuration()Deprecated.Returns theDurationassociated with thisInterval.<T> Tmatch(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 theDurationassociated with thisInterval.- Returns:
- a
Duration. - Since:
- 0.8
-
create
public static View.AggregationWindow.Interval create(Duration duration)
Deprecated.Constructs an intervalAggregationWindowthat has a finite explicitDuration.The
Durationshould be able to round to milliseconds. Currently interval window cannot have smallerDurationsuch 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.AggregationWindowApplies the given match function to the underlying data type.- Specified by:
matchin classView.AggregationWindow
-
-