Package org.apache.shenyu.common.config
Class ShenyuConfig.SharedPool
- java.lang.Object
-
- org.apache.shenyu.common.config.ShenyuConfig.SharedPool
-
- Enclosing class:
- ShenyuConfig
public static class ShenyuConfig.SharedPool extends java.lang.ObjectThe 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.IntegergetCorePoolSize()Get shared thread pool core size.java.lang.BooleangetEnable()Whether to enable shared thread pool.java.lang.LonggetKeepAliveTime()Get shared thread pool keep alive time.java.lang.IntegergetMaxFreeMemory()Get shared thread pool max work queue free memory.java.lang.IntegergetMaximumPoolSize()Get shared thread pool maximum size.java.lang.LonggetMaxWorkQueueMemory()Get shared thread pool max work queue memory.java.lang.StringgetPrefix()Get shared thread pool name prefix.voidsetCorePoolSize(java.lang.Integer corePoolSize)Set core pool size.voidsetEnable(java.lang.Boolean enable)Set enable.voidsetKeepAliveTime(java.lang.Long keepAliveTime)Set keep alive time.voidsetMaxFreeMemory(java.lang.Integer maxFreeMemory)Set max work queue free memory.voidsetMaximumPoolSize(java.lang.Integer maximumPoolSize)Set max pool size.voidsetMaxWorkQueueMemory(java.lang.Long maxWorkQueueMemory)Set max work queue memory.voidsetPrefix(java.lang.String prefix)Set prefix.
-
-
-
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
-
-