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 void setCorePoolSize(int corePoolSize)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public int getKeepAliveSeconds()
public void setKeepAliveSeconds(int keepAliveSeconds)
public int getQueueCapacity()
public void setQueueCapacity(int queueCapacity)
public boolean isAllowCoreThreadTimeOut()
public void setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut)
public String getName()
public void setName(String name)
public String getRejectedExecutionHandler()
public void setRejectedExecutionHandler(String rejectedExecutionHandler)
public AbstractNotificationService getNotificationService()
public void setNotificationService(AbstractNotificationService notificationService)
public BlockingQueue<Runnable> getWorkQueue()
public void setWorkQueue(BlockingQueue<Runnable> workQueue)
public ThreadFactory getThreadFactory()
public void setThreadFactory(ThreadFactory threadFactory)
public int getTickerCycle()
public void setTickerCycle(int tickerCycle)
Copyright © 2022 hellothomas. All rights reserved.