public class DefaultTimerThreadPoolAdapter extends Object implements org.apache.openejb.quartz.spi.ThreadPool
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultTimerThreadPoolAdapter.TimerExecutor |
| Modifier and Type | Field and Description |
|---|---|
static String |
OPENEJB_EJB_TIMER_POOL_AWAIT_SECONDS |
static String |
OPENEJB_TIMER_POOL_SIZE |
| Constructor and Description |
|---|
DefaultTimerThreadPoolAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final String OPENEJB_TIMER_POOL_SIZE
public static final String OPENEJB_EJB_TIMER_POOL_AWAIT_SECONDS
public int blockForAvailableThreads()
blockForAvailableThreads in interface org.apache.openejb.quartz.spi.ThreadPoolpublic void setInstanceId(String instanceId)
setInstanceId in interface org.apache.openejb.quartz.spi.ThreadPoolpublic void setInstanceName(String instanceName)
setInstanceName in interface org.apache.openejb.quartz.spi.ThreadPoolpublic String getInstanceId()
public String getInstanceName()
public int getPoolSize()
getPoolSize in interface org.apache.openejb.quartz.spi.ThreadPoolpublic void initialize()
throws org.apache.openejb.quartz.SchedulerConfigException
initialize in interface org.apache.openejb.quartz.spi.ThreadPoolorg.apache.openejb.quartz.SchedulerConfigExceptionpublic boolean runInThread(Runnable runnable)
runInThread in interface org.apache.openejb.quartz.spi.ThreadPoolpublic void shutdown(boolean arg0)
shutdown in interface org.apache.openejb.quartz.spi.ThreadPoolpublic int getThreadCount()
public void setThreadCount(int threadCount)
public int getThreadPriority()
public void setThreadPriority(int threadPriority)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.