org.ow2.util.pool.impl.enhanced.impl.thread
Class ThreadPool

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.impl.thread.ThreadPool
All Implemented Interfaces:
java.util.concurrent.Executor

public class ThreadPool
extends java.lang.Object
implements java.util.concurrent.Executor

Author:
Gael Lalire

Constructor Summary
ThreadPool(IPool<IReusableThread> pool)
           
ThreadPool(IPool<IReusableThread> pool, java.lang.Long waitTimeBeforeUsingSelfThread)
           
 
Method Summary
 void execute(java.lang.Runnable runnable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool(IPool<IReusableThread> pool)

ThreadPool

public ThreadPool(IPool<IReusableThread> pool,
                  java.lang.Long waitTimeBeforeUsingSelfThread)
Parameters:
pool -
waitTimeBeforeUsingSelfThread - if null then the threadPool will never use self thread
Method Detail

execute

public void execute(java.lang.Runnable runnable)
Specified by:
execute in interface java.util.concurrent.Executor


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.