Uses of Class
io.opencensus.common.Duration
Packages that use Duration
Package
Description
Common API between different packages in this artifact.
API for stats recording.
-
Uses of Duration in io.opencensus.common
Classes in io.opencensus.common that implement interfaces with type arguments of type DurationModifier and TypeClassDescriptionclassRepresents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution.Methods in io.opencensus.common that return DurationModifier and TypeMethodDescriptionstatic DurationDuration.create(long seconds, int nanos) Creates a new time duration from given seconds and nanoseconds.static DurationDuration.fromMillis(long millis) Creates a newDurationfrom given milliseconds.Timestamp.subtractTimestamp(Timestamp timestamp) Returns aDurationcalculated as:this - timestamp.Methods in io.opencensus.common with parameters of type DurationModifier and TypeMethodDescriptionTimestamp.addDuration(Duration duration) Returns aTimestampcalculated as thisTimestampplus someDuration.intCompares thisDurationto the specifiedDuration. -
Uses of Duration in io.opencensus.exporter.metrics.util
Methods in io.opencensus.exporter.metrics.util that return DurationModifier and TypeMethodDescriptionabstract DurationIntervalMetricReader.Options.getExportInterval()Returns the export interval between pushes to StackDriver.Methods in io.opencensus.exporter.metrics.util with parameters of type DurationModifier and TypeMethodDescriptionabstract IntervalMetricReader.Options.BuilderIntervalMetricReader.Options.Builder.setExportInterval(Duration exportInterval) Sets the export interval. -
Uses of Duration in io.opencensus.exporter.trace.util
Constructors in io.opencensus.exporter.trace.util with parameters of type DurationModifierConstructorDescriptionprotectedTimeLimitedHandler(Duration deadline, String exportSpanName) -
Uses of Duration in io.opencensus.stats
Methods in io.opencensus.stats that return DurationModifier and TypeMethodDescriptionabstract DurationView.AggregationWindow.Interval.getDuration()Deprecated.Returns theDurationassociated with thisInterval.Methods in io.opencensus.stats with parameters of type DurationModifier and TypeMethodDescriptionDeprecated.Constructs an intervalAggregationWindowthat has a finite explicitDuration. -
Uses of Duration in io.opencensus.testing.common
Methods in io.opencensus.testing.common with parameters of type DurationModifier and TypeMethodDescriptionvoidTestClock.advanceTime(Duration duration) Advances the time by a duration.