public final class JBossScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor implements ThreadPoolExecutorMBean, ShutdownListenable
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
JBossScheduledThreadPoolExecutor(int corePoolSize) |
JBossScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler) |
JBossScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory) |
JBossScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
<A> void |
addShutdownListener(EventListener<A> shutdownListener,
A attachment)
Add a shutdown listener.
|
int |
getCurrentThreadCount() |
long |
getKeepAliveTime() |
int |
getLargestThreadCount() |
int |
getMaxThreads() |
int |
getRejectedCount() |
RejectedExecutionHandler |
getRejectedExecutionHandler() |
void |
setKeepAliveTime(long milliseconds) |
void |
setKeepAliveTime(long time,
TimeUnit unit) |
void |
setMaxThreads(int newSize) |
void |
setRejectedExecutionHandler(RejectedExecutionHandler handler) |
protected void |
terminated() |
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submitafterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setMaximumPoolSize, setThreadFactory, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic JBossScheduledThreadPoolExecutor(int corePoolSize)
public JBossScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory)
public JBossScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler)
public JBossScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
public long getKeepAliveTime()
getKeepAliveTime in interface ThreadPoolExecutorMBeanpublic void setKeepAliveTime(long milliseconds)
setKeepAliveTime in interface ThreadPoolExecutorMBeanpublic void setKeepAliveTime(long time,
TimeUnit unit)
setKeepAliveTime in class ThreadPoolExecutorpublic int getRejectedCount()
getRejectedCount in interface ThreadExecutorMBeanpublic int getCurrentThreadCount()
getCurrentThreadCount in interface ThreadExecutorMBeanpublic int getLargestThreadCount()
getLargestThreadCount in interface ThreadExecutorMBeanpublic int getMaxThreads()
getMaxThreads in interface ThreadPoolExecutorMBeanpublic void setMaxThreads(int newSize)
setMaxThreads in interface ThreadPoolExecutorMBeanpublic RejectedExecutionHandler getRejectedExecutionHandler()
getRejectedExecutionHandler in class ThreadPoolExecutorpublic void setRejectedExecutionHandler(RejectedExecutionHandler handler)
setRejectedExecutionHandler in class ThreadPoolExecutorpublic <A> void addShutdownListener(EventListener<A> shutdownListener, A attachment)
addShutdownListener in interface ShutdownListenableA - the attachment typeshutdownListener - the listenerattachment - the attachment value to pass to the listenerprotected void terminated()
terminated in class ThreadPoolExecutorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.