public class JediThreadPoolProperty extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JediThreadPoolProperty.JediThreadPoolPropertyBuilder |
| 构造器和说明 |
|---|
JediThreadPoolProperty() |
JediThreadPoolProperty(int corePoolSize,
int maxPoolSize,
int keepAliveSeconds,
int queueCapacity,
boolean allowCoreThreadTimeOut,
String name,
String rejectedExecutionHandler,
AbstractNotificationService notificationService,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
int tickerCycle) |
| 限定符和类型 | 方法和说明 |
|---|---|
static JediThreadPoolProperty.JediThreadPoolPropertyBuilder |
builder() |
int |
getCorePoolSize() |
int |
getKeepAliveSeconds() |
int |
getMaxPoolSize() |
String |
getName() |
AbstractNotificationService |
getNotificationService() |
int |
getQueueCapacity() |
String |
getRejectedExecutionHandler() |
ThreadFactory |
getThreadFactory() |
int |
getTickerCycle() |
BlockingQueue<Runnable> |
getWorkQueue() |
boolean |
isAllowCoreThreadTimeOut() |
void |
setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut) |
void |
setCorePoolSize(int corePoolSize) |
void |
setKeepAliveSeconds(int keepAliveSeconds) |
void |
setMaxPoolSize(int maxPoolSize) |
void |
setName(String name) |
void |
setNotificationService(AbstractNotificationService notificationService) |
void |
setQueueCapacity(int queueCapacity) |
void |
setRejectedExecutionHandler(String rejectedExecutionHandler) |
void |
setThreadFactory(ThreadFactory threadFactory) |
void |
setTickerCycle(int tickerCycle) |
void |
setWorkQueue(BlockingQueue<Runnable> workQueue) |
String |
toString() |
public JediThreadPoolProperty()
public JediThreadPoolProperty(int corePoolSize,
int maxPoolSize,
int keepAliveSeconds,
int queueCapacity,
boolean allowCoreThreadTimeOut,
String name,
String rejectedExecutionHandler,
AbstractNotificationService notificationService,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
int tickerCycle)
public static JediThreadPoolProperty.JediThreadPoolPropertyBuilder builder()
public int getCorePoolSize()
public int getMaxPoolSize()
public int getKeepAliveSeconds()
public int getQueueCapacity()
public boolean isAllowCoreThreadTimeOut()
public String getName()
public String getRejectedExecutionHandler()
public AbstractNotificationService getNotificationService()
public BlockingQueue<Runnable> getWorkQueue()
public ThreadFactory getThreadFactory()
public int getTickerCycle()
public void setCorePoolSize(int corePoolSize)
public void setMaxPoolSize(int maxPoolSize)
public void setKeepAliveSeconds(int keepAliveSeconds)
public void setQueueCapacity(int queueCapacity)
public void setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut)
public void setName(String name)
public void setRejectedExecutionHandler(String rejectedExecutionHandler)
public void setNotificationService(AbstractNotificationService notificationService)
public void setWorkQueue(BlockingQueue<Runnable> workQueue)
public void setThreadFactory(ThreadFactory threadFactory)
public void setTickerCycle(int tickerCycle)
Copyright © 2021 hellothomas. All rights reserved.