Java org.springframework.scheduling.concurrent ThreadPoolTaskExecutor fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.scheduling.concurrent ThreadPoolTaskExecutor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.scheduling.concurrent ThreadPoolTaskExecutor.

The text is from its open source code.

Subclass

org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidafterPropertiesSet()
Calls initialize() after the container applied all property values.
voiddestroy()
Calls shutdown when the BeanFactory destroys the task executor instance.
voidexecute(Runnable task)
intgetActiveCount()
Return the number of currently active threads.
intgetCorePoolSize()
Return the ThreadPoolExecutor's core pool size.
intgetMaxPoolSize()
Return the ThreadPoolExecutor's maximum pool size.
intgetPoolSize()
Return the current pool size.
StringgetThreadNamePrefix()
Return the thread name prefix to use for the names of newly created threads.
ThreadPoolExecutorgetThreadPoolExecutor()
Return the underlying ThreadPoolExecutor for native access.
voidinitialize()
Set up the ExecutorService.
booleanisDaemon()
Return whether this factory should create daemon threads.
voidsetAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut)
Specify whether to allow core threads to time out.
voidsetAwaitTerminationSeconds(int awaitTerminationSeconds)
Set the maximum number of seconds that this executor is supposed to block on shutdown in order to wait for remaining tasks to complete their execution before the rest of the container continues to shut down.
voidsetBeanName(String name)
voidsetCorePoolSize(int corePoolSize)
Set the ThreadPoolExecutor's core pool size.
voidsetDaemon(boolean daemon)
Set whether this factory is supposed to create daemon threads, just executing as long as the application itself is running.
voidsetKeepAliveSeconds(int keepAliveSeconds)
Set the ThreadPoolExecutor's keep-alive seconds.
voidsetMaxPoolSize(int maxPoolSize)
Set the ThreadPoolExecutor's maximum pool size.
voidsetQueueCapacity(int queueCapacity)
Set the capacity for the ThreadPoolExecutor's BlockingQueue.
voidsetRejectedExecutionHandler(@Nullable RejectedExecutionHandler rejectedExecutionHandler)
Set the RejectedExecutionHandler to use for the ExecutorService.
voidsetThreadGroupName(String name)
Specify the name of the thread group that threads should be created in.
voidsetThreadNamePrefix(@Nullable String threadNamePrefix)
voidsetThreadPriority(int threadPriority)
Set the priority of the threads that this factory creates.
voidsetWaitForTasksToCompleteOnShutdown(boolean waitForJobsToCompleteOnShutdown)
Set whether to wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.
voidshutdown()
Perform a shutdown on the underlying ExecutorService.
Futuresubmit(Runnable task)
Futuresubmit(Callable task)