001package org.avaje.datasource; 002 003/** 004 * Current status of the DataSourcePool. 005 */ 006public interface PoolStatus { 007 008 /** 009 * Return the pools minimum size. 010 */ 011 int getMinSize(); 012 013 /** 014 * Return the pools maximum size. 015 */ 016 int getMaxSize(); 017 018 /** 019 * Return number of free connections. 020 */ 021 int getFree(); 022 023 /** 024 * Return number of busy connections. 025 */ 026 int getBusy(); 027 028 /** 029 * Return the number of threads waiting for connections. 030 */ 031 int getWaiting(); 032 033 /** 034 * Return the busy connection high water mark. 035 */ 036 int getHighWaterMark(); 037 038 /** 039 * Return the number of times threads had to wait for connections. 040 */ 041 int getWaitCount(); 042 043 /** 044 * Return the hit count against the pool. 045 */ 046 int getHitCount(); 047}