Example usage for Java org.springframework.scheduling.concurrent ThreadPoolTaskScheduler fields, constructors, methods, implement or subclass
The text is from its open source code.
void | afterPropertiesSet() Calls initialize() after the container applied all property values. |
void | destroy() Calls shutdown when the BeanFactory destroys the task executor instance. |
ScheduledExecutorService | getScheduledExecutor() Return the underlying ScheduledExecutorService for native access. |
ScheduledThreadPoolExecutor | getScheduledThreadPoolExecutor() Return the underlying ScheduledThreadPoolExecutor, if available. |
String | getThreadNamePrefix() Return the thread name prefix to use for the names of newly created threads. |
void | initialize() Set up the ExecutorService. |
boolean | isDaemon() Return whether this factory should create daemon threads. |
ScheduledFuture> | schedule(Runnable task, Trigger trigger) |
ScheduledFuture> | schedule(Runnable task, Date startTime) |
ScheduledFuture> | scheduleAtFixedRate(Runnable task, long period) |
void | setAwaitTerminationSeconds(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. |
void | setErrorHandler(ErrorHandler errorHandler) Set a custom ErrorHandler strategy. |
void | setPoolSize(int poolSize) Set the ScheduledExecutorService's pool size. |
void | setRejectedExecutionHandler(@Nullable RejectedExecutionHandler rejectedExecutionHandler) Set the RejectedExecutionHandler to use for the ExecutorService. |
void | setRemoveOnCancelPolicy(boolean removeOnCancelPolicy) Set the remove-on-cancel mode on ScheduledThreadPoolExecutor . |
void | setThreadNamePrefix(@Nullable String threadNamePrefix) |
void | setWaitForTasksToCompleteOnShutdown(boolean waitForJobsToCompleteOnShutdown) Set whether to wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue. |
void | shutdown() Perform a shutdown on the underlying ExecutorService. |