|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.commons.threads.ThreadPoolConfig
public final class ThreadPoolConfig
The ThreadPool configuration.
Nested Class Summary | |
---|---|
static class |
ThreadPoolConfig.ThreadPoolPolicy
The thread pool policies. |
static class |
ThreadPoolConfig.ThreadPriority
|
Constructor Summary | |
---|---|
ThreadPoolConfig()
Create a new default configuration. |
|
ThreadPoolConfig(ThreadPoolConfig copy)
Clone an existing configuration |
Method Summary | |
---|---|
protected void |
checkWritable()
|
ThreadPoolConfig.ThreadPoolPolicy |
getBlockPolicy()
|
java.util.concurrent.ThreadFactory |
getFactory()
|
long |
getKeepAliveTime()
|
int |
getMaxPoolSize()
|
int |
getMinPoolSize()
|
ThreadPoolConfig.ThreadPriority |
getPriority()
|
int |
getQueueSize()
|
int |
getShutdownWaitTimeMs()
|
boolean |
isDaemon()
|
boolean |
isShutdownGraceful()
|
void |
makeReadOnly()
Make the configuration read-only. |
void |
setBlockPolicy(ThreadPoolConfig.ThreadPoolPolicy blockPolicy)
|
void |
setDaemon(boolean isDaemon)
|
void |
setFactory(java.util.concurrent.ThreadFactory factory)
|
void |
setKeepAliveTime(long keepAliveTime)
|
void |
setMaxPoolSize(int maxPoolSize)
|
void |
setMinPoolSize(int minPoolSize)
|
void |
setPriority(ThreadPoolConfig.ThreadPriority priority)
|
void |
setQueueSize(int queueSize)
|
void |
setShutdownGraceful(boolean shutdownGraceful)
|
void |
setShutdownWaitTimeMs(int shutdownWaitTimeMs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadPoolConfig()
public ThreadPoolConfig(ThreadPoolConfig copy)
copy
- The config to cloneMethod Detail |
---|
protected void checkWritable()
public void makeReadOnly()
public int getMinPoolSize()
public void setMinPoolSize(int minPoolSize)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public int getQueueSize()
public void setQueueSize(int queueSize)
public long getKeepAliveTime()
public void setKeepAliveTime(long keepAliveTime)
public ThreadPoolConfig.ThreadPoolPolicy getBlockPolicy()
public void setBlockPolicy(ThreadPoolConfig.ThreadPoolPolicy blockPolicy)
public boolean isShutdownGraceful()
public void setShutdownGraceful(boolean shutdownGraceful)
public int getShutdownWaitTimeMs()
public void setShutdownWaitTimeMs(int shutdownWaitTimeMs)
public java.util.concurrent.ThreadFactory getFactory()
public void setFactory(java.util.concurrent.ThreadFactory factory)
public ThreadPoolConfig.ThreadPriority getPriority()
public void setPriority(ThreadPoolConfig.ThreadPriority priority)
public boolean isDaemon()
public void setDaemon(boolean isDaemon)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |