public interface PoolStatus
Current status of the DataSourcePool.
-
Method Summary
Modifier and TypeMethodDescriptionintbusy()Return number of busy connections.intfree()Return number of free connections.intReturn the busy connection highwater mark.inthitCount()Return the hit count against the pool.longReturn the max acquire time in micros.intmaxSize()Return the pools maximum size.longReturn the mean acquire time in nanos.intminSize()Return the pools minimum size.longReturn the total time acquiring a connection from the pool.longReturn the total time waiting in micros for a free connection when the pool has hit maxConnections.intReturn the number of times threads had to wait for connections.intwaiting()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.
-