Method Summary |
|
public void | afterPropertiesSet() Calls initialize() after the container applied all property values. |
protected BlockingQueue | createQueue(int queueCapacity) Create the BlockingQueue to use for the ThreadPoolExecutor. |
public void | destroy() Calls shutdown when the BeanFactory destroys
the task executor instance. |
public void | execute(Runnable task) Implementation of both the JSR-166 backport Executor interface and the Spring
TaskExecutor interface, delegating to the ThreadPoolExecutor instance. |
public int | getActiveCount() Return the number of currently active threads. |
public int | getCorePoolSize() Return the ThreadPoolExecutor's core pool size. |
public int | getKeepAliveSeconds() Return the ThreadPoolExecutor's keep-alive seconds. |
public int | getMaxPoolSize() Return the ThreadPoolExecutor's maximum pool size. |
public int | getPoolSize() Return the current pool size. |
public ThreadPoolExecutor | getThreadPoolExecutor() Return the underlying ThreadPoolExecutor for native access. |
public void | initialize() Creates the BlockingQueue and the ThreadPoolExecutor. |
public boolean | prefersShortLivedTasks() This task executor prefers short-lived work units. |
public void | setBeanName(String name) |
public void | setCorePoolSize(int corePoolSize) Set the ThreadPoolExecutor's core pool size. |
public void | setKeepAliveSeconds(int keepAliveSeconds) Set the ThreadPoolExecutor's keep-alive seconds. |
public void | setMaxPoolSize(int maxPoolSize) Set the ThreadPoolExecutor's maximum pool size. |
public void | setQueueCapacity(int queueCapacity) Set the capacity for the ThreadPoolExecutor's BlockingQueue. |
public void | setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) Set the RejectedExecutionHandler to use for the ThreadPoolExecutor. |
public void | setThreadFactory(ThreadFactory threadFactory) Set the ThreadFactory to use for the ThreadPoolExecutor's thread pool. |
public void | shutdown() Perform a shutdown on the ThreadPoolExecutor. |