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 View.AggregationWindow
View.AggregationWindow.Cumulative, View.AggregationWindow.Interval -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Constructs an intervalAggregationWindowthat has a finite explicitDuration.abstract DurationDeprecated.Returns theDurationassociated with thisInterval.final <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 Details
-
ZERO
Deprecated.
-
-
Constructor Details
-
Interval
Interval()Deprecated.
-
-
Method Details
-
getDuration
Deprecated.Returns theDurationassociated with thisInterval.- Returns:
- a
Duration. - Since:
- 0.8
-
create
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
-
Views will be cumulative.