Package io.vertx.core.spi.metrics

## Interface PoolMetrics<Q,​T>

- All Superinterfaces:
    `Metrics`

      public interface PoolMetrics<Q,​T>
      extends Metrics

  Worker pool metrics

- - ### Field Summary

    - ### Fields inherited from interface io.vertx.core.spi.metrics.Metrics

      `METRICS_ENABLED`

  - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `default T` | `begin()` | 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` | `enqueue()` | Signals a request is enqueued to obtain a resource.

    - ### Methods inherited from interface io.vertx.core.spi.metrics.Metrics

      `close`

- - ### Method Detail

    - #### 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()`