|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.objectweb.cjdbc.driver.ConnectionClosingThread
The ConnectionClosingThread
wakes up every 5 seconds when
close() has been called on a connection and it frees the connection if it has
not been reused.
Field Summary | |
private Driver |
driver
|
private java.util.ArrayList |
pendingConnectionClosing
|
private static int |
WAIT_TIME
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ConnectionClosingThread(Driver driver)
Builds a new ConnectionClosingThread |
Method Summary | |
private void |
closeConnection(Connection c)
Closes a connection. |
void |
run()
The connection closing thread wakes up every WAIT_TIME seconds when close() has been called on a connection and it frees the connection if it has not been reused. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final int WAIT_TIME
private Driver driver
private java.util.ArrayList pendingConnectionClosing
Constructor Detail |
public ConnectionClosingThread(Driver driver)
driver
- The driver that created usMethod Detail |
public void run()
private void closeConnection(Connection c)
c
- the connection to close
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |