Interface PoolStatus


public interface PoolStatus
Current status of the DataSourcePool.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return number of busy connections.
    int
    Return number of free connections.
    int
    Return the busy connection highwater mark.
    int
    Return the hit count against the pool.
    long
    Return the max acquire time in micros.
    int
    Return the pools maximum size.
    long
    Return the mean acquire time in nanos.
    int
    Return the pools minimum size.
    long
    Return the total time acquiring a connection from the pool.
    long
    Return the total time waiting in micros for a free connection when the pool has hit maxConnections.
    int
    Return the number of times threads had to wait for connections.
    int
    Return the number of threads waiting for connections.
  • Method Details

    • minSize

      int minSize()
      Return the pools minimum size.
    • maxSize

      int maxSize()
      Return the pools maximum size.
    • free

      int free()
      Return number of free connections.
    • busy

      int busy()
      Return number of busy connections.
    • waiting

      int waiting()
      Return the number of threads waiting for connections.
    • highWaterMark

      int highWaterMark()
      Return the busy connection highwater mark.
    • waitCount

      int waitCount()
      Return the number of times threads had to wait for connections.

      This occurs when the pool is full and threads are waiting for a connection.

    • hitCount

      int hitCount()
      Return the hit count against the pool.
    • totalAcquireMicros

      long totalAcquireMicros()
      Return the total time acquiring a connection from the pool.
    • totalWaitMicros

      long totalWaitMicros()
      Return the total time waiting in micros for a free connection when the pool has hit maxConnections.

      When the pool is full and threads are waiting for a connection, this is the total time spent waiting.

    • maxAcquireMicros

      long maxAcquireMicros()
      Return the max acquire time in micros.
    • meanAcquireNanos

      long meanAcquireNanos()
      Return the mean acquire time in nanos.

      This should be in the ballpark of 150 nanos.