public static class GobrsAsyncProperties.ThreadPool extends Object
| 构造器和说明 |
|---|
ThreadPool() |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
getAllowCoreThreadTimeOut()
Gets allow core thread time out.
|
Integer |
getCapacity()
Gets capacity.
|
Integer |
getCorePoolSize()
Gets core pool size.
|
Long |
getExecuteTimeOut()
Gets execute time out.
|
Long |
getKeepAliveTime()
Gets keep alive time.
|
Integer |
getMaxPoolSize()
Gets max pool size.
|
String |
getRejectedExecutionHandler()
Gets rejected execution handler.
|
String |
getThreadNamePrefix()
Gets thread name prefix.
|
TimeUnit |
getTimeUnit()
Gets time unit.
|
BlockingQueue |
getWorkQueue()
Gets work queue.
|
void |
setAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
Sets allow core thread time out.
|
void |
setCapacity(int capacity)
Sets capacity.
|
void |
setCorePoolSize(int corePoolSize)
Sets core pool size.
|
void |
setExecuteTimeOut(long executeTimeOut)
Sets execute time out.
|
void |
setKeepAliveTime(long keepAliveTime)
Sets keep alive time.
|
void |
setMaxPoolSize(int maxPoolSize)
Sets max pool size.
|
void |
setRejectedExecutionHandler(String rejectedExecutionHandler)
Sets rejected execution handler.
|
void |
setThreadNamePrefix(String threadNamePrefix)
Sets thread name prefix.
|
void |
setTimeUnit(TimeUnit timeUnit)
Sets time unit.
|
void |
setWorkQueue(BlockingQueue workQueue)
Sets work queue.
|
public Integer getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
corePoolSize - the core pool sizepublic Integer getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
maxPoolSize - the max pool sizepublic Long getKeepAliveTime()
public void setKeepAliveTime(long keepAliveTime)
keepAliveTime - the keep alive timepublic TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
timeUnit - the time unitpublic Long getExecuteTimeOut()
public void setExecuteTimeOut(long executeTimeOut)
executeTimeOut - the execute time outpublic Integer getCapacity()
public void setCapacity(int capacity)
capacity - the capacitypublic BlockingQueue getWorkQueue()
public void setWorkQueue(BlockingQueue workQueue)
workQueue - the work queuepublic String getThreadNamePrefix()
public void setThreadNamePrefix(String threadNamePrefix)
threadNamePrefix - the thread name prefixpublic Boolean getAllowCoreThreadTimeOut()
public void setAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
allowCoreThreadTimeOut - the allow core thread time outpublic String getRejectedExecutionHandler()
public void setRejectedExecutionHandler(String rejectedExecutionHandler)
rejectedExecutionHandler - the rejected execution handlerCopyright © 2022. All rights reserved.