Class TaskPoolProperties

java.lang.Object
com.mikuac.shiro.properties.TaskPoolProperties

@Component @ConfigurationProperties(prefix="shiro.task-pool") public class TaskPoolProperties extends Object
Created on 2021/8/12.
  • Constructor Details

    • TaskPoolProperties

      public TaskPoolProperties()
  • Method Details

    • getEnableTaskPool

      public Boolean getEnableTaskPool()
      是否启用shiro的线程池, 无配置或者 true 为开启, 默认值开启
    • getThreadNamePrefix

      public String getThreadNamePrefix()
      线程池名前缀
    • getCorePoolSize

      public Integer getCorePoolSize()
      核心线程数(默认线程数)
    • getMaxPoolSize

      public Integer getMaxPoolSize()
      最大线程数
    • getKeepAliveTime

      public Integer getKeepAliveTime()
      允许线程空闲时间(单位:默认为秒)
    • getQueueCapacity

      public Integer getQueueCapacity()
      缓冲队列大小
    • setEnableTaskPool

      public void setEnableTaskPool(Boolean enableTaskPool)
      是否启用shiro的线程池, 无配置或者 true 为开启, 默认值开启
    • setThreadNamePrefix

      public void setThreadNamePrefix(String threadNamePrefix)
      线程池名前缀
    • setCorePoolSize

      public void setCorePoolSize(Integer corePoolSize)
      核心线程数(默认线程数)
    • setMaxPoolSize

      public void setMaxPoolSize(Integer maxPoolSize)
      最大线程数
    • setKeepAliveTime

      public void setKeepAliveTime(Integer keepAliveTime)
      允许线程空闲时间(单位:默认为秒)
    • setQueueCapacity

      public void setQueueCapacity(Integer queueCapacity)
      缓冲队列大小
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object