public class LazyTraceThreadPoolTaskExecutor
extends org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
ThreadPoolTaskExecutor.| Constructor and Description |
|---|
LazyTraceThreadPoolTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor delegate) |
LazyTraceThreadPoolTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor delegate,
String beanName) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Thread |
createThread(Runnable runnable) |
void |
destroy() |
void |
execute(Runnable task) |
void |
execute(Runnable task,
long startTimeout) |
int |
getActiveCount() |
int |
getCorePoolSize() |
int |
getKeepAliveSeconds() |
int |
getMaxPoolSize() |
int |
getPoolSize() |
ThreadGroup |
getThreadGroup() |
String |
getThreadNamePrefix() |
ThreadPoolExecutor |
getThreadPoolExecutor() |
int |
getThreadPriority() |
void |
initialize() |
boolean |
isDaemon() |
Thread |
newThread(Runnable runnable) |
boolean |
prefersShortLivedTasks() |
void |
setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut) |
void |
setAwaitTerminationSeconds(int awaitTerminationSeconds) |
void |
setBeanName(String name) |
void |
setCorePoolSize(int corePoolSize) |
void |
setDaemon(boolean daemon) |
void |
setKeepAliveSeconds(int keepAliveSeconds) |
void |
setMaxPoolSize(int maxPoolSize) |
void |
setQueueCapacity(int queueCapacity) |
void |
setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) |
void |
setTaskDecorator(org.springframework.core.task.TaskDecorator taskDecorator) |
void |
setThreadFactory(ThreadFactory threadFactory) |
void |
setThreadGroup(ThreadGroup threadGroup) |
void |
setThreadGroupName(String name) |
void |
setThreadNamePrefix(String threadNamePrefix) |
void |
setThreadPriority(int threadPriority) |
void |
setWaitForTasksToCompleteOnShutdown(boolean waitForJobsToCompleteOnShutdown) |
void |
shutdown() |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
<T> org.springframework.util.concurrent.ListenableFuture<T> |
submitListenable(Callable<T> task) |
org.springframework.util.concurrent.ListenableFuture<?> |
submitListenable(Runnable task) |
cancelRemainingTask, createQueue, initializeExecutorsetAwaitTerminationMillispublic LazyTraceThreadPoolTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor delegate)
public LazyTraceThreadPoolTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor delegate,
String beanName)
public void execute(Runnable task)
public void execute(Runnable task, long startTimeout)
execute in interface org.springframework.core.task.AsyncTaskExecutorexecute in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic Future<?> submit(Runnable task)
submit in interface org.springframework.core.task.AsyncTaskExecutorsubmit in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic <T> Future<T> submit(Callable<T> task)
submit in interface org.springframework.core.task.AsyncTaskExecutorsubmit in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic org.springframework.util.concurrent.ListenableFuture<?> submitListenable(Runnable task)
submitListenable in interface org.springframework.core.task.AsyncListenableTaskExecutorsubmitListenable in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic <T> org.springframework.util.concurrent.ListenableFuture<T> submitListenable(Callable<T> task)
submitListenable in interface org.springframework.core.task.AsyncListenableTaskExecutorsubmitListenable in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic boolean prefersShortLivedTasks()
public void setThreadFactory(ThreadFactory threadFactory)
setThreadFactory in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
setRejectedExecutionHandler in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void setWaitForTasksToCompleteOnShutdown(boolean waitForJobsToCompleteOnShutdown)
setWaitForTasksToCompleteOnShutdown in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void setAwaitTerminationSeconds(int awaitTerminationSeconds)
setAwaitTerminationSeconds in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwaresetBeanName in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic ThreadPoolExecutor getThreadPoolExecutor() throws IllegalStateException
getThreadPoolExecutor in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorIllegalStateExceptionpublic int getPoolSize()
getPoolSize in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic int getActiveCount()
getActiveCount in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void initialize()
initialize in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic void shutdown()
shutdown in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic Thread newThread(Runnable runnable)
newThread in interface ThreadFactorynewThread in class org.springframework.scheduling.concurrent.CustomizableThreadFactorypublic String getThreadNamePrefix()
getThreadNamePrefix in class org.springframework.util.CustomizableThreadCreatorpublic void setThreadNamePrefix(String threadNamePrefix)
setThreadNamePrefix in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportpublic int getThreadPriority()
getThreadPriority in class org.springframework.util.CustomizableThreadCreatorpublic void setThreadPriority(int threadPriority)
setThreadPriority in class org.springframework.util.CustomizableThreadCreatorpublic boolean isDaemon()
isDaemon in class org.springframework.util.CustomizableThreadCreatorpublic void setDaemon(boolean daemon)
setDaemon in class org.springframework.util.CustomizableThreadCreatorpublic void setThreadGroupName(String name)
setThreadGroupName in class org.springframework.util.CustomizableThreadCreatorpublic ThreadGroup getThreadGroup()
getThreadGroup in class org.springframework.util.CustomizableThreadCreatorpublic void setThreadGroup(ThreadGroup threadGroup)
setThreadGroup in class org.springframework.util.CustomizableThreadCreatorpublic Thread createThread(Runnable runnable)
createThread in class org.springframework.util.CustomizableThreadCreatorpublic int getCorePoolSize()
getCorePoolSize in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void setCorePoolSize(int corePoolSize)
setCorePoolSize in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic int getMaxPoolSize()
getMaxPoolSize in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void setMaxPoolSize(int maxPoolSize)
setMaxPoolSize in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic int getKeepAliveSeconds()
getKeepAliveSeconds in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void setKeepAliveSeconds(int keepAliveSeconds)
setKeepAliveSeconds in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void setQueueCapacity(int queueCapacity)
setQueueCapacity in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut)
setAllowCoreThreadTimeOut in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorpublic void setTaskDecorator(org.springframework.core.task.TaskDecorator taskDecorator)
setTaskDecorator in class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorCopyright © 2021 Pivotal Software, Inc.. All rights reserved.