Class 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)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.lang.String prefix, boolean optimize)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix, boolean optimize)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix, boolean optimize)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
      ShadowScheduledThreadPoolExecutor​(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler, java.lang.String prefix, boolean optimize)
      Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for 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
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.concurrent.ExecutorService

        awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
    • Constructor Detail

      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.lang.String prefix)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        prefix - the prefix of new thread
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.lang.String prefix,
                                                 boolean optimize)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        prefix - the prefix of new thread
        optimize - the value indicates that the thread pool optimization should be applied
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.util.concurrent.ThreadFactory threadFactory,
                                                 java.lang.String prefix)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        threadFactory - the factory to use when the executor creates a new thread
        prefix - the prefix of new thread
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.util.concurrent.ThreadFactory threadFactory,
                                                 java.lang.String prefix,
                                                 boolean optimize)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        threadFactory - the factory to use when the executor creates a new thread
        prefix - the prefix of new thread
        optimize - the value indicates that the thread pool optimization should be applied
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.util.concurrent.RejectedExecutionHandler handler,
                                                 java.lang.String prefix)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        handler - the handler to use when execution is blocked because the thread bounds and queue capacities are reached
        prefix - the prefix of new thread
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.util.concurrent.RejectedExecutionHandler handler,
                                                 java.lang.String prefix,
                                                 boolean optimize)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        handler - the handler to use when execution is blocked because the thread bounds and queue capacities are reached
        prefix - the prefix of new thread
        optimize - the value indicates that the thread pool optimization should be applied
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.util.concurrent.ThreadFactory threadFactory,
                                                 java.util.concurrent.RejectedExecutionHandler handler,
                                                 java.lang.String prefix)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        threadFactory - the factory to use when the executor creates a new thread
        handler - the handler to use when execution is blocked because the thread bounds and queue capacities are reached
        prefix - the prefix of new thread
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0
      • ShadowScheduledThreadPoolExecutor

        public ShadowScheduledThreadPoolExecutor​(int corePoolSize,
                                                 java.util.concurrent.ThreadFactory threadFactory,
                                                 java.util.concurrent.RejectedExecutionHandler handler,
                                                 java.lang.String prefix,
                                                 boolean optimize)
        Initialize ScheduledThreadPoolExecutor with new thread name, this constructor is used by ThreadTransformer for thread renaming
        Parameters:
        corePoolSize - the number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
        threadFactory - the factory to use when the executor creates a new thread
        handler - the handler to use when execution is blocked because the thread bounds and queue capacities are reached
        prefix - the prefix of new thread
        optimize - the value indicates that the thread pool optimization should be applied
        Throws:
        java.lang.IllegalArgumentException - if corePoolSize < 0