Class DefaultAsyncTaskExecutor

    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
      • executorService

        protected ExecutorService executorService
        The executor service used for task execution.
      • executorNeedsShutdown

        protected boolean executorNeedsShutdown
        Whether the executor needs a shutdown. This is true if the executor service has not been set from the outside.
      • threadPoolQueue

        protected BlockingQueue<Runnable> threadPoolQueue
        The queue used for job execution work
    • Constructor Detail

      • DefaultAsyncTaskExecutor

        public DefaultAsyncTaskExecutor()
    • Method Detail

      • start

        public void start()
      • getCorePoolSize

        public int getCorePoolSize()
      • setCorePoolSize

        public void setCorePoolSize​(int corePoolSize)
      • getMaxPoolSize

        public int getMaxPoolSize()
      • setMaxPoolSize

        public void setMaxPoolSize​(int maxPoolSize)
      • getKeepAliveTime

        public long getKeepAliveTime()
      • setKeepAliveTime

        public void setKeepAliveTime​(long keepAliveTime)
      • getQueueSize

        public int getQueueSize()
      • setQueueSize

        public void setQueueSize​(int queueSize)
      • isAllowCoreThreadTimeout

        public boolean isAllowCoreThreadTimeout()
      • setAllowCoreThreadTimeout

        public void setAllowCoreThreadTimeout​(boolean allowCoreThreadTimeout)
      • getSecondsToWaitOnShutdown

        public long getSecondsToWaitOnShutdown()
      • setSecondsToWaitOnShutdown

        public void setSecondsToWaitOnShutdown​(long secondsToWaitOnShutdown)
      • getThreadPoolNamingPattern

        public String getThreadPoolNamingPattern()
      • setThreadPoolNamingPattern

        public void setThreadPoolNamingPattern​(String threadPoolNamingPattern)
      • setThreadFactory

        public void setThreadFactory​(ThreadFactory threadFactory)
      • setRejectedExecutionHandler

        public void setRejectedExecutionHandler​(RejectedExecutionHandler rejectedExecutionHandler)