org.sblim.wbem.util
Class ThreadPool

java.lang.Object
  extended by org.sblim.wbem.util.ThreadPool

public class ThreadPool
extends java.lang.Object


Constructor Summary
ThreadPool()
           
ThreadPool(int minPoolSize, int maxPoolSize)
           
 
Method Summary
protected  org.sblim.wbem.util.ThreadPool.Worker createWorker()
           
 boolean execute(java.lang.Runnable task)
           
 boolean execute(java.lang.Runnable task, boolean enqueue)
           
 java.lang.ThreadGroup getGroup()
           
 long getIdleTimeOutMs()
           
static ThreadPool getInstance()
           
protected  java.util.Vector getThreadPool()
           
protected  void removeThread(org.sblim.wbem.util.ThreadPool.Worker worker)
           
 void shutdown()
           
 boolean taskCompleted(org.sblim.wbem.util.ThreadPool.Worker worker, boolean timeout)
           
 
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(int minPoolSize,
                  int maxPoolSize)
Method Detail

getInstance

public static ThreadPool getInstance()

getIdleTimeOutMs

public long getIdleTimeOutMs()

execute

public boolean execute(java.lang.Runnable task)

execute

public boolean execute(java.lang.Runnable task,
                       boolean enqueue)

createWorker

protected org.sblim.wbem.util.ThreadPool.Worker createWorker()

getGroup

public java.lang.ThreadGroup getGroup()

taskCompleted

public boolean taskCompleted(org.sblim.wbem.util.ThreadPool.Worker worker,
                             boolean timeout)

removeThread

protected void removeThread(org.sblim.wbem.util.ThreadPool.Worker worker)

shutdown

public void shutdown()

getThreadPool

protected java.util.Vector getThreadPool()


Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.