c

org.apache.spark.network.util

TimerWithCustomTimeUnit

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
Timer, Sampling, Metered, Counting, Metric, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimerWithCustomTimeUnit
  2. Timer
  3. Sampling
  4. Metered
  5. Counting
  6. Metric
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TimerWithCustomTimeUnit(timeUnit: TimeUnit)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def getCount(): Long
    Definition Classes
    Timer → Metered → Counting
  11. def getFifteenMinuteRate(): Double
    Definition Classes
    Timer → Metered
  12. def getFiveMinuteRate(): Double
    Definition Classes
    Timer → Metered
  13. def getMeanRate(): Double
    Definition Classes
    Timer → Metered
  14. def getOneMinuteRate(): Double
    Definition Classes
    Timer → Metered
  15. def getSnapshot(): Snapshot
    Definition Classes
    TimerWithCustomTimeUnit → Timer → Sampling
    Annotations
    @Override()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def time(): Context
    Definition Classes
    Timer
  23. def time(arg0: Runnable): Unit
    Definition Classes
    Timer
  24. def time[T <: AnyRef](arg0: Callable[T]): T
    Definition Classes
    Timer
    Annotations
    @throws(classOf[java.lang.Exception])
  25. def timeSupplier[T <: AnyRef](arg0: Supplier[T]): T
    Definition Classes
    Timer
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def update(arg0: Duration): Unit
    Definition Classes
    Timer
  28. def update(arg0: Long, arg1: TimeUnit): Unit
    Definition Classes
    Timer
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Timer

Inherited from Sampling

Inherited from Metered

Inherited from Counting

Inherited from Metric

Inherited from AnyRef

Inherited from Any

Ungrouped