Interface PooledObjectFactory.Statistics

Enclosing interface:
PooledObjectFactory<T>

public static interface PooledObjectFactory.Statistics
Utilization statistics of the this factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Number of exchanges acquired (reused) when using pooled factory.
    long
    Number of new exchanges created.
    long
    Number of exchanges discarded (thrown away) such as if no space in cache pool.
    long
    Number of exchanges released back to pool
    void
    Reset the counters
  • Method Details

    • getCreatedCounter

      long getCreatedCounter()
      Number of new exchanges created.
    • getAcquiredCounter

      long getAcquiredCounter()
      Number of exchanges acquired (reused) when using pooled factory.
    • getReleasedCounter

      long getReleasedCounter()
      Number of exchanges released back to pool
    • getDiscardedCounter

      long getDiscardedCounter()
      Number of exchanges discarded (thrown away) such as if no space in cache pool.
    • reset

      void reset()
      Reset the counters