final case class CountRateMetric[T](countingFunction: (T) => Int, periodicObjectives: List[(RateObjective, Option[Value])], finalObjectives: List[RateObjective], counter: Int = 0, lastCount: Int = 0) extends Metric[T] with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CountRateMetric
- Serializable
- Product
- Equals
- Metric
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CountRateMetric(countingFunction: (T) => Int, periodicObjectives: List[(RateObjective, Option[Value])], finalObjectives: List[RateObjective], counter: Int = 0, lastCount: Int = 0)
Type Members
- type Objective = RateObjective
- Definition Classes
- CountRateMetric → Metric
- type V = Value
- Definition Classes
- CountRateMetric → Metric
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() @HotSpotIntrinsicCandidate()
- val counter: Int
- val countingFunction: (T) => Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val finalObjectives: List[RateObjective]
- def finalValue(totalDuration: Duration): Value
- Definition Classes
- CountRateMetric → Metric
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastCount: Int
- def name: String
- Definition Classes
- Metric
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onNext(value: T): CountRateMetric[T]
- returns
an updated version of itself
- Definition Classes
- CountRateMetric → Metric
- val periodicObjectives: List[(RateObjective, Option[Value])]
- def periodicValue(periodDuration: Duration): (Metric[T], Value)
- returns
an updated version of itself and the value observed in this period NOTE: Durations of subsequent periods are not guaranteed to be exactly the same.
- Definition Classes
- CountRateMetric → Metric
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def violatedFinalObjectives(totalDuration: Duration): List[(RateObjective, Value)]
- returns
a list of objective violations, where each element is a pair of a violated objective and the final value that violates it.
- Definition Classes
- CountRateMetric → Metric
- def violatedPeriodicObjectives: List[(RateObjective, Value)]
- returns
a list of objective violations, where each element is a pair of a violated objective and the periodic value that violates it the most.
- Definition Classes
- CountRateMetric → Metric
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])