Class ThreadPoolProfileConfigurationProperties


  • @Configurer(bootstrap=true)
    public class ThreadPoolProfileConfigurationProperties
    extends Object
    • Constructor Detail

      • ThreadPoolProfileConfigurationProperties

        public ThreadPoolProfileConfigurationProperties()
    • Method Detail

      • getId

        public String getId()
      • setId

        public void setId​(String id)
        Sets the id of this thread pool
      • getPoolSize

        public Integer getPoolSize()
      • setPoolSize

        public void setPoolSize​(Integer poolSize)
        Sets the core pool size (threads to keep minimum in pool)
      • getMaxPoolSize

        public Integer getMaxPoolSize()
      • setMaxPoolSize

        public void setMaxPoolSize​(Integer maxPoolSize)
        Sets the maximum pool size
      • getKeepAliveTime

        public Long getKeepAliveTime()
      • setKeepAliveTime

        public void setKeepAliveTime​(Long keepAliveTime)
        Sets the keep alive time for inactive threads
      • getTimeUnit

        public TimeUnit getTimeUnit()
      • setTimeUnit

        public void setTimeUnit​(TimeUnit timeUnit)
        Sets the time unit used for keep alive time
      • getMaxQueueSize

        public Integer getMaxQueueSize()
      • setMaxQueueSize

        public void setMaxQueueSize​(Integer maxQueueSize)
        Sets the maximum number of tasks in the work queue. Use -1 or an unbounded queue
      • getAllowCoreThreadTimeOut

        public Boolean getAllowCoreThreadTimeOut()
      • setAllowCoreThreadTimeOut

        public void setAllowCoreThreadTimeOut​(Boolean allowCoreThreadTimeOut)
        Sets whether to allow core threads to timeout
      • getRejectedPolicy

        public org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy getRejectedPolicy()
      • setRejectedPolicy

        public void setRejectedPolicy​(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
        Sets the handler for tasks which cannot be executed by the thread pool.