Class ShenyuConfig.SharedPool

  • Enclosing class:
    ShenyuConfig

    public static class ShenyuConfig.SharedPool
    extends java.lang.Object
    The type Shared Thread Pool.
    • Constructor Summary

      Constructors 
      Constructor Description
      SharedPool()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getCorePoolSize()
      Get shared thread pool core size.
      java.lang.Boolean getEnable()
      Whether to enable shared thread pool.
      java.lang.Long getKeepAliveTime()
      Get shared thread pool keep alive time.
      java.lang.Integer getMaxFreeMemory()
      Get shared thread pool max work queue free memory.
      java.lang.Integer getMaximumPoolSize()
      Get shared thread pool maximum size.
      java.lang.Long getMaxWorkQueueMemory()
      Get shared thread pool max work queue memory.
      java.lang.String getPrefix()
      Get shared thread pool name prefix.
      void setCorePoolSize​(java.lang.Integer corePoolSize)
      Set core pool size.
      void setEnable​(java.lang.Boolean enable)
      Set enable.
      void setKeepAliveTime​(java.lang.Long keepAliveTime)
      Set keep alive time.
      void setMaxFreeMemory​(java.lang.Integer maxFreeMemory)
      Set max work queue free memory.
      void setMaximumPoolSize​(java.lang.Integer maximumPoolSize)
      Set max pool size.
      void setMaxWorkQueueMemory​(java.lang.Long maxWorkQueueMemory)
      Set max work queue memory.
      void setPrefix​(java.lang.String prefix)
      Set prefix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SharedPool

        public SharedPool()
    • Method Detail

      • getEnable

        public java.lang.Boolean getEnable()
        Whether to enable shared thread pool.
        Returns:
        whether to enable
      • setEnable

        public void setEnable​(java.lang.Boolean enable)
        Set enable.
        Parameters:
        enable - the enable
      • getPrefix

        public java.lang.String getPrefix()
        Get shared thread pool name prefix.
        Returns:
        the shared thread pool name prefix
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
        Set prefix.
        Parameters:
        prefix - the prefix
      • getCorePoolSize

        public java.lang.Integer getCorePoolSize()
        Get shared thread pool core size.
        Returns:
        the shared thread pool core size
      • setCorePoolSize

        public void setCorePoolSize​(java.lang.Integer corePoolSize)
        Set core pool size.
        Parameters:
        corePoolSize - the core pool size
      • getMaximumPoolSize

        public java.lang.Integer getMaximumPoolSize()
        Get shared thread pool maximum size.
        Returns:
        the shared thread pool name prefix
      • setMaximumPoolSize

        public void setMaximumPoolSize​(java.lang.Integer maximumPoolSize)
        Set max pool size.
        Parameters:
        maximumPoolSize - the max pool size
      • getKeepAliveTime

        public java.lang.Long getKeepAliveTime()
        Get shared thread pool keep alive time.
        Returns:
        the shared thread pool keep alive time
      • setKeepAliveTime

        public void setKeepAliveTime​(java.lang.Long keepAliveTime)
        Set keep alive time.
        Parameters:
        keepAliveTime - the keep alive time
      • getMaxWorkQueueMemory

        public java.lang.Long getMaxWorkQueueMemory()
        Get shared thread pool max work queue memory.
        Returns:
        the shared thread pool max work queue memory
      • setMaxWorkQueueMemory

        public void setMaxWorkQueueMemory​(java.lang.Long maxWorkQueueMemory)
        Set max work queue memory.
        Parameters:
        maxWorkQueueMemory - the max work queue memory
      • getMaxFreeMemory

        public java.lang.Integer getMaxFreeMemory()
        Get shared thread pool max work queue free memory.
        Returns:
        the shared thread pool max work queue free memory
      • setMaxFreeMemory

        public void setMaxFreeMemory​(java.lang.Integer maxFreeMemory)
        Set max work queue free memory.
        Parameters:
        maxFreeMemory - the max work queue free memory