| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | |
| private final Runnable |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JBossScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, final Runnable terminationTask)
|
| public | JBossScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler, final Runnable terminationTask)
|
| public | JBossScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler, final Runnable terminationTask)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public long | |
| public int | |
| public int | |
| public int | |
| public int | |
| public RejectedExecutionHandler | getRejectedExecutionHandler()
Overrides java. |
| public void | |
| public void | setKeepAliveTime(final long
the time to wait. A time value of zero will cause
excess threads to terminate immediately after executing tasks. time, final TimeUnit the time unit of the unit)time argumentOverrides java. |
| public void | |
| public void | setRejectedExecutionHandler(final RejectedExecutionHandler
the new handler handler)Overrides java. |
| protected void | terminated()
Overrides java. |
| rejectCount | back to summary |
|---|---|
| private final AtomicInteger rejectCount | |
| terminationTask | back to summary |
|---|---|
| private final Runnable terminationTask | |
| JBossScheduledThreadPoolExecutor | back to summary |
|---|---|
| public JBossScheduledThreadPoolExecutor(int corePoolSize, final Runnable terminationTask) | |
| JBossScheduledThreadPoolExecutor | back to summary |
|---|---|
| public JBossScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, final Runnable terminationTask) | |
| JBossScheduledThreadPoolExecutor | back to summary |
|---|---|
| public JBossScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler, final Runnable terminationTask) | |
| JBossScheduledThreadPoolExecutor | back to summary |
|---|---|
| public JBossScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler, final Runnable terminationTask) | |
| getCurrentThreadCount | back to summary |
|---|---|
| public int getCurrentThreadCount() | |
| getKeepAliveTime | back to summary |
|---|---|
| public long getKeepAliveTime() | |
| getLargestThreadCount | back to summary |
|---|---|
| public int getLargestThreadCount() | |
| getMaxThreads | back to summary |
|---|---|
| public int getMaxThreads() | |
| getQueueSize | back to summary |
|---|---|
| public int getQueueSize() | |
| getRejectedCount | back to summary |
|---|---|
| public int getRejectedCount() | |
| getRejectedExecutionHandler | back to summary |
|---|---|
| public RejectedExecutionHandler getRejectedExecutionHandler() Overrides java. Doc from java. Returns the current handler for unexecutable tasks.
| |
| setKeepAliveTime | back to summary |
|---|---|
| public void setKeepAliveTime(final long milliseconds) | |
| setKeepAliveTime | back to summary |
|---|---|
| public void setKeepAliveTime(final long time, final TimeUnit unit) Overrides java. Doc from java. Sets the thread keep-alive time, which is the amount of time that threads may remain idle before being terminated. Threads that wait this amount of time without processing a task will be terminated if there are more than the core number of threads currently in the pool, or if this pool allows core thread timeout. This overrides any value set in the constructor.
| |
| setMaxThreads | back to summary |
|---|---|
| public void setMaxThreads(final int newSize) | |
| setRejectedExecutionHandler | back to summary |
|---|---|
| public void setRejectedExecutionHandler(final RejectedExecutionHandler handler) Overrides java. Doc from java. Sets a new handler for unexecutable tasks.
| |
| terminated | back to summary |
|---|---|
| protected void terminated() Overrides java. Doc from java. Method invoked when the Executor has terminated. Default implementation does nothing. Note To properly nest multiple
overridings, subclasses should generally invoke
| |
| Modifier and Type | Field and Description |
|---|---|
| private final RejectedExecutionHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RejectedExecutionHandler | |
| public void | rejectedExecution(final Runnable
the runnable task requested to be executed r, final ThreadPoolExecutor the executor attempting to execute this task executor)Implements java. ThreadPoolExecutor when
execute cannot accept a
task.
|
| delegate | back to summary |
|---|---|
| private final RejectedExecutionHandler delegate | |
| CountingRejectHandler | back to summary |
|---|---|
| public CountingRejectHandler(final RejectedExecutionHandler delegate) | |
| getDelegate | back to summary |
|---|---|
| public RejectedExecutionHandler getDelegate() | |
| rejectedExecution | back to summary |
|---|---|
| public void rejectedExecution(final Runnable r, final ThreadPoolExecutor executor) Implements java. Doc from java. Method that may be invoked by a In the absence of other alternatives, the method may throw
an unchecked
| |