Class ShadowScheduledThreadPoolExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- java.util.concurrent.ScheduledThreadPoolExecutor
-
- com.didiglobal.booster.instrument.ShadowScheduledThreadPoolExecutor
-
- All Implemented Interfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService
public class ShadowScheduledThreadPoolExecutor extends java.util.concurrent.ScheduledThreadPoolExecutor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
-
-
Constructor Summary
Constructors Constructor Description ShadowScheduledThreadPoolExecutor(int corePoolSize, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renamingShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming
-
Method Summary
-
Methods inherited from class java.util.concurrent.ScheduledThreadPoolExecutor
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submit
-
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toString
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor
-
-
-
-
Constructor Detail
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis setprefix- the prefix of new thread- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis setprefix- the prefix of new threadoptimize- the value indicates that the thread pool optimization should be applied- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis setthreadFactory- the factory to use when the executor creates a new threadprefix- the prefix of new thread- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis setthreadFactory- the factory to use when the executor creates a new threadprefix- the prefix of new threadoptimize- the value indicates that the thread pool optimization should be applied- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis sethandler- the handler to use when execution is blocked because the thread bounds and queue capacities are reachedprefix- the prefix of new thread- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis sethandler- the handler to use when execution is blocked because the thread bounds and queue capacities are reachedprefix- the prefix of new threadoptimize- the value indicates that the thread pool optimization should be applied- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis setthreadFactory- the factory to use when the executor creates a new threadhandler- the handler to use when execution is blocked because the thread bounds and queue capacities are reachedprefix- the prefix of new thread- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
ShadowScheduledThreadPoolExecutor
public ShadowScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix, boolean optimize)InitializeScheduledThreadPoolExecutorwith new thread name, this constructor is used byThreadTransformerfor thread renaming- Parameters:
corePoolSize- the number of threads to keep in the pool, even if they are idle, unlessallowCoreThreadTimeOutis setthreadFactory- the factory to use when the executor creates a new threadhandler- the handler to use when execution is blocked because the thread bounds and queue capacities are reachedprefix- the prefix of new threadoptimize- the value indicates that the thread pool optimization should be applied- Throws:
java.lang.IllegalArgumentException- ifcorePoolSize < 0
-
-