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

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

Introduction

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

The text is from its open source code.

Subclass

org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler 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.
ScheduledExecutorServicegetScheduledExecutor()
Return the underlying ScheduledExecutorService for native access.
ScheduledThreadPoolExecutorgetScheduledThreadPoolExecutor()
Return the underlying ScheduledThreadPoolExecutor, if available.
StringgetThreadNamePrefix()
Return the thread name prefix to use for the names of newly created threads.
voidinitialize()
Set up the ExecutorService.
booleanisDaemon()
Return whether this factory should create daemon threads.
ScheduledFutureschedule(Runnable task, Trigger trigger)
ScheduledFutureschedule(Runnable task, Date startTime)
ScheduledFuturescheduleAtFixedRate(Runnable task, long period)
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.
voidsetErrorHandler(ErrorHandler errorHandler)
Set a custom ErrorHandler strategy.
voidsetPoolSize(int poolSize)
Set the ScheduledExecutorService's pool size.
voidsetRejectedExecutionHandler(@Nullable RejectedExecutionHandler rejectedExecutionHandler)
Set the RejectedExecutionHandler to use for the ExecutorService.
voidsetRemoveOnCancelPolicy(boolean removeOnCancelPolicy)
Set the remove-on-cancel mode on ScheduledThreadPoolExecutor .
voidsetThreadNamePrefix(@Nullable String threadNamePrefix)
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.