|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jolbox.bonecp.ConnectionMaxAgeThread
public class ConnectionMaxAgeThread
Periodically checks for connections to see if the connection has expired.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
Logger handle. |
| Constructor Summary | |
|---|---|
protected |
ConnectionMaxAgeThread(ConnectionPartition connectionPartition,
ScheduledExecutorService scheduler,
BoneCP pool,
long maxAgeInMs,
boolean lifoMode)
Constructor |
| Method Summary | |
|---|---|
protected void |
closeConnection(ConnectionHandle connection)
Closes off this connection |
void |
run()
Invoked periodically. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger logger
| Constructor Detail |
|---|
protected ConnectionMaxAgeThread(ConnectionPartition connectionPartition,
ScheduledExecutorService scheduler,
BoneCP pool,
long maxAgeInMs,
boolean lifoMode)
connectionPartition - partition to work onscheduler - Scheduler handler.pool - pool handlemaxAgeInMs - Threads older than this are killed offlifoMode - if true, we're running under a lifo fashion.| Method Detail |
|---|
public void run()
run in interface Runnableprotected void closeConnection(ConnectionHandle connection)
connection - to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||