org.objectweb.cjdbc.scenario.tools.util
Class GetConnectionThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.objectweb.cjdbc.scenario.tools.util.GetConnectionThread
All Implemented Interfaces:
java.lang.Runnable

public class GetConnectionThread
extends java.lang.Thread

This thread gets a connection during a given time and releases it after.

Author:
Mathieu Peltier

Field Summary
private  AbstractPoolConnectionManager pool
          Pool connection manager.
private  long time
          Time in milliseconds the thread is using the connection.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GetConnectionThread(java.lang.String name, AbstractPoolConnectionManager pool, long time)
          Creates a new GetConnectionThread instance.
 
Method Summary
 void run()
           
 
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

pool

private AbstractPoolConnectionManager pool
Pool connection manager.


time

private long time
Time in milliseconds the thread is using the connection.

Constructor Detail

GetConnectionThread

public GetConnectionThread(java.lang.String name,
                           AbstractPoolConnectionManager pool,
                           long time)
Creates a new GetConnectionThread instance.

Parameters:
name - thread name.
pool - pool connection manager.
time - time in milliseconds the thread is using the connection.
Method Detail

run

public void run()
See Also:
Runnable.run()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.