Interface ConnectionPoolMonitor
-
- All Superinterfaces:
Monitor
- All Known Implementing Classes:
ObjectPoolMonitor
@MXBean public interface ConnectionPoolMonitor extends Monitor
- Author:
- matic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveTimeoutMinutes()Returns the active timeout before the connection being killed.intgetBlockingTimeoutMilliseconds()intgetConnectionCount()intgetIdleConnectionCount()intgetIdleTimeoutMinutes()longgetKilledActiveConnectionCount()Returns the current killed connection countStringgetName()Returns the pool nameintkillActiveTimedoutConnections()Kills active timed out connections in the pool.voidreset()Destroys the current connection manager and replace it by a new one
-
-
-
Field Detail
-
NAME
static final String NAME
-
-
Method Detail
-
getName
String getName()
Returns the pool name- Since:
- 8.4
-
getConnectionCount
int getConnectionCount()
-
getIdleConnectionCount
int getIdleConnectionCount()
-
getBlockingTimeoutMilliseconds
int getBlockingTimeoutMilliseconds()
-
getIdleTimeoutMinutes
int getIdleTimeoutMinutes()
-
getActiveTimeoutMinutes
int getActiveTimeoutMinutes()
Returns the active timeout before the connection being killed.- Since:
- 8.4
-
getKilledActiveConnectionCount
long getKilledActiveConnectionCount()
Returns the current killed connection count- Since:
- 8.4
-
killActiveTimedoutConnections
int killActiveTimedoutConnections()
Kills active timed out connections in the pool. Returns the killed count.- Since:
- 8.4
-
reset
void reset()
Destroys the current connection manager and replace it by a new one- Since:
- 8.4
-
-