org.apache.openejb.core.timer
Class DefaultTimerThreadPoolAdapter

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

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

Version:
$Rev$ $Date$

Nested Class Summary
static class DefaultTimerThreadPoolAdapter.TimerExecutor
           
 
Field Summary
static String OPENEJB_EJB_TIMER_POOL_AWAIT_SECONDS
           
static String OPENEJB_TIMER_POOL_SIZE
           
 
Constructor Summary
DefaultTimerThreadPoolAdapter()
           
 
Method Summary
 int blockForAvailableThreads()
           
 String getInstanceId()
           
 String getInstanceName()
           
 int getPoolSize()
           
 int getThreadCount()
           
 int getThreadPriority()
           
 void initialize()
           
 boolean runInThread(Runnable runnable)
           
 void setInstanceId(String instanceId)
           
 void setInstanceName(String instanceName)
           
 void setThreadCount(int threadCount)
           
 void setThreadPriority(int threadPriority)
           
 void shutdown(boolean arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPENEJB_TIMER_POOL_SIZE

public static final String OPENEJB_TIMER_POOL_SIZE
See Also:
Constant Field Values

OPENEJB_EJB_TIMER_POOL_AWAIT_SECONDS

public static final String OPENEJB_EJB_TIMER_POOL_AWAIT_SECONDS
See Also:
Constant Field Values
Constructor Detail

DefaultTimerThreadPoolAdapter

public DefaultTimerThreadPoolAdapter()
Method Detail

blockForAvailableThreads

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

setInstanceId

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

setInstanceName

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

getInstanceId

public String getInstanceId()

getInstanceName

public String getInstanceName()

getPoolSize

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

initialize

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

runInThread

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

shutdown

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

getThreadCount

public int getThreadCount()

setThreadCount

public void setThreadCount(int threadCount)

getThreadPriority

public int getThreadPriority()

setThreadPriority

public void setThreadPriority(int threadPriority)


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.