Interface PoolMetrics<Q,T>

All Superinterfaces:
Metrics

public interface PoolMetrics<Q,T> extends Metrics
Worker pool metrics
  • Field Summary

    Fields inherited from interface Metrics

    METRICS_ENABLED
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Signal the beginning of the utilisation of a pool resource.
    default void
    dequeue(Q queueMetric)
    Signals the request was removed from the queue.
    default void
    end(T t)
    Signal the release of a pool resource.
    default Q
    Signals a request is enqueued to obtain a resource.

    Methods inherited from interface Metrics

    close
  • Method Details

    • enqueue

      default Q enqueue()
      Signals a request is enqueued to obtain a resource.
    • dequeue

      default void dequeue(Q queueMetric)
      Signals the request was removed from the queue.
    • begin

      default T begin()
      Signal the beginning of the utilisation of a pool resource.
      Returns:
      the timer measuring the resource utilisation
    • end

      default void end(T t)
      Signal the release of a pool resource.
      Parameters:
      t - the timer measuring the resource utilisation returned by begin()