o

com.daml.metrics

InstrumentedSource

object InstrumentedSource

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InstrumentedSource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class InstrumentedBoundedSourceQueue[T] extends BoundedSourceQueue[T]

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 bufferedSource[T, U](original: Source[T, U], counter: Counter, size: Int): Source[T, U]

    Adds a buffer to the output of the original source, and adds a Counter metric for buffer size.

    Adds a buffer to the output of the original source, and adds a Counter metric for buffer size.

    Good for detecting bottlenecks and speed difference between consumer and producer. In case producer is faster, this buffer should be mostly empty. In case producer is slower, this buffer should be mostly full.

    original

    the original source which will be instrumented

    counter

    the counter to track the actual size of the buffer

    size

    the maximum size of the buffer. In case of a bottleneck in producer this will be mostly full, so careful estimation needed to prevent excessive memory pressure

    returns

    the instrumentes source

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. def queue[T](bufferSize: Int, capacityCounter: Counter, lengthCounter: Counter, delayTimer: Timer)(implicit materializer: Materializer): Source[T, BoundedSourceQueue[T]]

    Returns a Source that can be fed via the materialized queue.

    Returns a Source that can be fed via the materialized queue.

    The queue length counter can at most be eventually consistent due to the counter increment and decrement operation being scheduled separately and possibly not in the same order as the actual enqueuing and dequeueing of items.

    For this reason, you may also read values on the saturation counter which are negative or exceed bufferSize.

    Note that the fact that the count is decremented in a second operator means that its buffering will likely skew the measurements to be greater than the actual value, rather than the other way around.

    We track the queue capacity as a counter as we may want to aggregate the metrics for multiple individual queues of the same kind and we want to be able to decrease the capacity when the queue gets completed.

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped