| |
|
| java.lang.Object java.lang.Thread com.knowgate.jdc.ConnectionReaper
ConnectionReaper | final class ConnectionReaper extends Thread (Code) | | Connection pool daemon thread
This thread scans a ConnectionPool every given interval calling
ConnectionPool.reapConnections() for closing unused connections.
|
ConnectionReaper | ConnectionReaper(JDCConnectionPool forpool)(Code) | | Constructor
Parameters: forpool - JDCConnectionPool |
getDelay | public long getDelay()(Code) | | Get connection reaper call interval
long Number of miliseconds between reaper calls since: 3.0 |
run | public void run()(Code) | | Reap connections every n-minutes
|
setDelay | public void setDelay(long lDelay) throws IllegalArgumentException(Code) | | Set connection reaper call interval
The default value is 5 minutes
Parameters: lDelay - long Number of miliseconds between reaper calls throws: IllegalArgumentException - if lDelay is less than 1000 since: 3.0 |
|
|
|