net.sf.crispy.concurrent
Class ThreadController

java.lang.Object
  extended bynet.sf.crispy.concurrent.ThreadController

public class ThreadController
extends java.lang.Object

This class create and controlled all Threads.

Since:
Verion 1.0
Author:
Linke

Constructor Summary
ThreadController()
           
 
Method Summary
 int getCurrentRequests()
          Returns the number of currently running Threads.
 int getMaxThreads()
           
 ThreadWorker getThreadWorker()
          Get a new ThreadWorker (Thread) or from pool.
 void releasThreadWorker(ThreadWorker pvThreadWorker)
          Release ThreadWorker (Thread)
 void setMaxThreads(int pvMaxThreads)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadController

public ThreadController()
Method Detail

setMaxThreads

public void setMaxThreads(int pvMaxThreads)

getMaxThreads

public int getMaxThreads()

getThreadWorker

public ThreadWorker getThreadWorker()
Get a new ThreadWorker (Thread) or from pool.

Returns:
ThreadWorker - Thread

releasThreadWorker

public void releasThreadWorker(ThreadWorker pvThreadWorker)
Release ThreadWorker (Thread)

Parameters:
pvThreadWorker - the Thread

getCurrentRequests

public int getCurrentRequests()
Returns the number of currently running Threads.

Returns:
Current number of Threads.


Copyright © 2005-2006 Crispy. All Rights Reserved.