anvil.java.lang
Class ThreadPool

java.lang.Object
  |
  +--anvil.java.lang.ThreadPool

public class ThreadPool
extends java.lang.Object

class ThreadPool


Constructor Summary
ThreadPool()
           
ThreadPool(java.lang.String name)
           
 
Method Summary
 int getMaxTasks()
           
 int getMaxThreads()
           
 void release(PooledThread thread)
           
 void setMaxTasks(int max)
           
 void setMaxThreads(int max)
           
 void shutdown()
           
 void spawn(Task task)
           
 int threads()
           
 int waiting()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool()

ThreadPool

public ThreadPool(java.lang.String name)
Method Detail

threads

public int threads()

waiting

public int waiting()

getMaxThreads

public int getMaxThreads()

setMaxThreads

public void setMaxThreads(int max)

getMaxTasks

public int getMaxTasks()

setMaxTasks

public void setMaxTasks(int max)

spawn

public void spawn(Task task)

release

public void release(PooledThread thread)

shutdown

public void shutdown()