001package org.avaje.datasource;
002
003/**
004 * Execution statistics from the DataSourcePool.
005 */
006public interface PoolStatistics {
007
008  /**
009   * Return the epoch millis when these statistics start from.
010   */
011  long getCollectionStart();
012
013  /**
014   * Return the hit count against the pool.
015   */
016  long getCount();
017
018  /**
019   * Return the error count against the pool.
020   */
021  long getErrorCount();
022
023  /**
024   * Return the high water mark for connection use in micros.
025   */
026  long getHwmMicros();
027
028  /**
029   * Return the total connection use in micros.
030   */
031  long getTotalMicros();
032
033  /**
034   * Return the average connection use in micros.
035   */
036  long getAvgMicros();
037}