org.jwarp.service.connectionpool
Class ConnectionPoolUpdateThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.jwarp.service.connectionpool.ConnectionPoolUpdateThread
All Implemented Interfaces:
java.lang.Runnable

public class ConnectionPoolUpdateThread
extends java.lang.Thread

Connection Pool Update Thread
The connection pool update thread calls the method checkFreeConnections()
from the PoolManager. This checks for too many open connections in all pools.
Call setUpdateTime() to start or stop the thread.


Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
ConnectionPoolUpdateThread()
          Constructor.
 
Method Summary
 void run()
          The run method of the thread.
 void setUpdateTime(int updateTime)
          Sets the update Time in ms.
 void start()
          Deprecated. Use setUpdateTime instead.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionPoolUpdateThread

public ConnectionPoolUpdateThread()
Constructor.
Method Detail

setUpdateTime

public void setUpdateTime(int updateTime)
Sets the update Time in ms. If updateTime > 0 the thread ist started,
otherwise the thread is stopped and no updates are performed.
Parameters:
updateTime - how often the connection pools are updated in ms

start

public void start()
Deprecated. Use setUpdateTime instead.

Starts the update thread with a default update time.
Overrides:
start in class java.lang.Thread

run

public void run()
The run method of the thread. Calls method checkFreeConnections() from PoolManager.
Overrides:
run in class java.lang.Thread

©   O R C A   S y s t e m s