org.apache.openejb.core.timer
Class DefaultTimerThreadPoolAdapter

java.lang.Object
  extended by org.apache.openejb.core.timer.DefaultTimerThreadPoolAdapter
All Implemented Interfaces:
org.quartz.spi.ThreadPool

public class DefaultTimerThreadPoolAdapter
extends Object
implements org.quartz.spi.ThreadPool

Version:
$Rev$ $Date$

Constructor Summary
DefaultTimerThreadPoolAdapter()
           
 
Method Summary
 int blockForAvailableThreads()
           
 String getInstanceId()
           
 String getInstanceName()
           
 int getPoolSize()
           
 void initialize()
           
 boolean runInThread(Runnable runnable)
           
 void setInstanceId(String instanceId)
           
 void setInstanceName(String instanceName)
           
 void shutdown(boolean arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTimerThreadPoolAdapter

public DefaultTimerThreadPoolAdapter()
Method Detail

blockForAvailableThreads

public int blockForAvailableThreads()
Specified by:
blockForAvailableThreads in interface org.quartz.spi.ThreadPool

setInstanceId

public void setInstanceId(String instanceId)
Specified by:
setInstanceId in interface org.quartz.spi.ThreadPool

setInstanceName

public void setInstanceName(String instanceName)
Specified by:
setInstanceName in interface org.quartz.spi.ThreadPool

getInstanceId

public String getInstanceId()

getInstanceName

public String getInstanceName()

getPoolSize

public int getPoolSize()
Specified by:
getPoolSize in interface org.quartz.spi.ThreadPool

initialize

public void initialize()
                throws org.quartz.SchedulerConfigException
Specified by:
initialize in interface org.quartz.spi.ThreadPool
Throws:
org.quartz.SchedulerConfigException

runInThread

public boolean runInThread(Runnable runnable)
Specified by:
runInThread in interface org.quartz.spi.ThreadPool

shutdown

public void shutdown(boolean arg0)
Specified by:
shutdown in interface org.quartz.spi.ThreadPool


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.