Class TtlThreadPoolTaskScheduler
-
- All Implemented Interfaces:
-
java.io.Serializable,java.util.EventListener,java.util.concurrent.Executor,java.util.concurrent.ThreadFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle,org.springframework.core.task.AsyncListenableTaskExecutor,org.springframework.core.task.AsyncTaskExecutor,org.springframework.core.task.TaskExecutor,org.springframework.scheduling.SchedulingTaskExecutor,org.springframework.scheduling.TaskScheduler
public class TtlThreadPoolTaskScheduler extends ThreadPoolTaskScheduleruse Ttl ThreadPool
- Since:
2022-12-03
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public volatile intpoolSizepublic Clockclockpublic ScheduledExecutorServicescheduledExecutorpublic intphasepublic final static intDEFAULT_PHASEpublic StringthreadNamePrefixpublic intthreadPrioritypublic ThreadGroupthreadGrouppublic final static longTIMEOUT_IMMEDIATEpublic final static longTIMEOUT_INDEFINITE
-
Constructor Summary
Constructors Constructor Description TtlThreadPoolTaskScheduler()
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
execute, getActiveCount, getClock, getPoolSize, getScheduledExecutor, getScheduledThreadPoolExecutor, isRemoveOnCancelPolicy, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setClock, setContinueExistingPeriodicTasksAfterShutdownPolicy, setErrorHandler, setExecuteExistingDelayedTasksAfterShutdownPolicy, setPoolSize, setRemoveOnCancelPolicy, submit, submit, submitListenable, submitListenable -
Methods inherited from class org.springframework.scheduling.concurrent.ExecutorConfigurationSupport
afterPropertiesSet, destroy, getPhase, initialize, initiateShutdown, isRunning, onApplicationEvent, setAcceptTasksAfterContextClose, setApplicationContext, setAwaitTerminationMillis, setAwaitTerminationSeconds, setBeanName, setPhase, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdown, shutdown, start, stop -
Methods inherited from class org.springframework.util.CustomizableThreadCreator
createThread, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, setDaemon, setThreadGroup, setThreadGroupName, setThreadPriority -
Methods inherited from class org.springframework.scheduling.SchedulingTaskExecutor
prefersShortLivedTasks -
Methods inherited from class org.springframework.scheduling.concurrent.CustomizableThreadFactory
newThread -
Methods inherited from class org.springframework.context.SmartLifecycle
isAutoStartup -
Methods inherited from class org.springframework.context.ApplicationListener
forPayload, supportsAsyncExecution -
Methods inherited from class org.springframework.core.task.AsyncTaskExecutor
submitCompletable, submitCompletable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-