org.apache.geronimo.pool
Class ThreadPool

java.lang.Object
  extended byorg.apache.geronimo.pool.ThreadPool
All Implemented Interfaces:
EDU.oswego.cs.dl.util.concurrent.Executor, org.apache.geronimo.gbean.GBeanLifecycle

public class ThreadPool
extends Object
implements EDU.oswego.cs.dl.util.concurrent.Executor, org.apache.geronimo.gbean.GBeanLifecycle

Version:
$Revision: 1.6 $ $Date: 2004/07/18 21:53:03 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ThreadPool()
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 void execute(Runnable command)
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 long getKeepAliveTime()
           
 String getPoolName()
           
 int getPoolSize()
           
 void setKeepAliveTime(long keepAliveTime)
           
 void setPoolName(String poolName)
           
 void setPoolSize(int poolSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

ThreadPool

public ThreadPool()
Method Detail

getKeepAliveTime

public long getKeepAliveTime()

setKeepAliveTime

public void setKeepAliveTime(long keepAliveTime)

getPoolSize

public int getPoolSize()

setPoolSize

public void setPoolSize(int poolSize)

getPoolName

public String getPoolName()

execute

public void execute(Runnable command)
             throws InterruptedException
Specified by:
execute in interface EDU.oswego.cs.dl.util.concurrent.Executor
Throws:
InterruptedException

setPoolName

public void setPoolName(String poolName)

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws org.apache.geronimo.gbean.WaitingException,
                   Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.