class TimerWithCustomTimeUnit extends Timer
A custom version of a Timer which allows for specifying a specific TimeUnit to
be used when accessing timing values via #getSnapshot(). Normally, though the
TimeUnit) method requires a unit, the extraction methods on the snapshot
do not specify a unit, and always return nanoseconds. It can be useful to specify that a timer
should use a different unit for its snapshot. Note that internally, all values are still stored
with nanosecond-precision; it is only before being returned to the caller that the nanosecond
value is converted to the custom time unit.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TimerWithCustomTimeUnit
- Timer
- Sampling
- Metered
- Counting
- Metric
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCount(): Long
- Definition Classes
- Timer → Metered → Counting
- def getFifteenMinuteRate(): Double
- Definition Classes
- Timer → Metered
- def getFiveMinuteRate(): Double
- Definition Classes
- Timer → Metered
- def getMeanRate(): Double
- Definition Classes
- Timer → Metered
- def getOneMinuteRate(): Double
- Definition Classes
- Timer → Metered
- def getSnapshot(): Snapshot
- Definition Classes
- TimerWithCustomTimeUnit → Timer → Sampling
- Annotations
- @Override()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def time(): Context
- Definition Classes
- Timer
- def time(arg0: Runnable): Unit
- Definition Classes
- Timer
- def time[T <: AnyRef](arg0: Callable[T]): T
- Definition Classes
- Timer
- Annotations
- @throws(classOf[java.lang.Exception])
- def timeSupplier[T <: AnyRef](arg0: Supplier[T]): T
- Definition Classes
- Timer
- def toString(): String
- Definition Classes
- AnyRef → Any
- def update(arg0: Duration): Unit
- Definition Classes
- Timer
- def update(arg0: Long, arg1: TimeUnit): Unit
- Definition Classes
- Timer
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()