public class DefaultThreadPoolConfig extends Object implements ThreadPoolConfig
DEFAULT_THREADPOOL
Constructor and Description |
---|
DefaultThreadPoolConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getCorePoolSize() |
RejectedExecutionHandler |
getHandler() |
long |
getKeepAliveTime() |
int |
getMaximumPoolSize() |
ThreadFactory |
getThreadFactory() |
TimeUnit |
getUnit() |
BlockingQueue<Runnable> |
getWorkQueue() |
int |
getWorkQueueLength() |
void |
setCorePoolSize(int corePoolSize) |
void |
setKeepAliveTime(long keepAliveTime) |
void |
setMaximumPoolSize(int maximumPoolSize) |
void |
setUnit(TimeUnit unit) |
void |
setWorkQueueLength(int workQueueLength) |
public int getWorkQueueLength()
public void setWorkQueueLength(int workQueueLength)
public int getCorePoolSize()
getCorePoolSize
in interface ThreadPoolConfig
public void setCorePoolSize(int corePoolSize)
public int getMaximumPoolSize()
getMaximumPoolSize
in interface ThreadPoolConfig
public void setMaximumPoolSize(int maximumPoolSize)
public long getKeepAliveTime()
getKeepAliveTime
in interface ThreadPoolConfig
public void setKeepAliveTime(long keepAliveTime)
public TimeUnit getUnit()
getUnit
in interface ThreadPoolConfig
public void setUnit(TimeUnit unit)
public BlockingQueue<Runnable> getWorkQueue()
getWorkQueue
in interface ThreadPoolConfig
public ThreadFactory getThreadFactory()
getThreadFactory
in interface ThreadPoolConfig
public RejectedExecutionHandler getHandler()
getHandler
in interface ThreadPoolConfig
Copyright © 2006–2018 TinyGroup. All rights reserved.