| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionTesterThread(ConnectionPartition connectionPartition,
ScheduledExecutorService scheduler,
BoneCP pool,
long idleMaxAgeInMs,
long idleConnectionTestPeriodInMs,
boolean lifoMode)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeConnection(ConnectionHandle connection)
Closes off this connection
|
void |
run()
Invoked periodically.
|
protected ConnectionTesterThread(ConnectionPartition connectionPartition, ScheduledExecutorService scheduler, BoneCP pool, long idleMaxAgeInMs, long idleConnectionTestPeriodInMs, boolean lifoMode)
connectionPartition - partition to work onscheduler - Scheduler handler.pool - pool handleidleMaxAgeInMs - Threads older than this are killed offidleConnectionTestPeriodInMs - Threads that are idle for more than this time are sent a keep-alive.lifoMode - if true, we're running under a lifo fashion.protected void closeConnection(ConnectionHandle connection)
connection - to closeCopyright © 2009-2013 JolBox. All Rights Reserved.