public static class BaseLocalThreadPool.PoolConfig extends Object
Constructor and Description |
---|
PoolConfig() |
PoolConfig(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
BlockingQueue<Runnable> workQueue,
ThreadFactory defaultThreadFactory) |
Modifier and Type | Method and Description |
---|---|
int |
getCorePoolSize() |
ThreadFactory |
getDefaultThreadFactory() |
long |
getKeepAliveTime() |
int |
getMaximumPoolSize() |
TimeUnit |
getTimeUnit() |
BlockingQueue<Runnable> |
getWorkQueue() |
void |
setCorePoolSize(int corePoolSize) |
void |
setDefaultThreadFactory(ThreadFactory defaultThreadFactory) |
void |
setKeepAliveTime(long keepAliveTime) |
void |
setMaximumPoolSize(int maximumPoolSize) |
void |
setTimeUnit(TimeUnit timeUnit) |
void |
setWorkQueue(BlockingQueue<Runnable> workQueue) |
String |
toString() |
public PoolConfig(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit timeUnit, BlockingQueue<Runnable> workQueue, ThreadFactory defaultThreadFactory)
public PoolConfig()
public int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
public int getMaximumPoolSize()
public void setMaximumPoolSize(int maximumPoolSize)
public long getKeepAliveTime()
public void setKeepAliveTime(long keepAliveTime)
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
public BlockingQueue<Runnable> getWorkQueue()
public void setWorkQueue(BlockingQueue<Runnable> workQueue)
public ThreadFactory getDefaultThreadFactory()
public void setDefaultThreadFactory(ThreadFactory defaultThreadFactory)
Copyright © 2020. All rights reserved.