|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.common.service.thread.ThreadPoolConfig
public class ThreadPoolConfig
| Constructor Summary | |
|---|---|
ThreadPoolConfig()
|
|
ThreadPoolConfig(org.exoplatform.container.xml.InitParams params)
|
|
| Method Summary | |
|---|---|
String |
getId()
Gets the id of this profile |
Long |
getKeepAliveTime()
Gets the keep alive time for inactive threads |
Integer |
getMaxPoolSize()
Gets the maximum pool size |
Integer |
getMaxQueueSize()
Gets the maximum number of tasks in the work queue. |
Integer |
getPoolSize()
Gets the core pool size (threads to keep minimum in pool) |
int |
getPriority()
|
TimeUnit |
getTimeUnit()
Gets the time unit used for keep alive time |
boolean |
isAsyncMode()
|
Boolean |
isDefaultProfile()
Whether this profile is the default profile (there can only be one). |
void |
setAsyncMode(boolean asyncMode)
|
void |
setDefaultProfile(Boolean defaultProfile)
Sets whether this profile is the default profile (there can only be one). |
void |
setId(String id)
Sets the id of this profile |
void |
setKeepAliveTime(Long keepAliveTime)
Sets the keep alive time for inactive threads |
void |
setMaxPoolSize(Integer maxPoolSize)
Sets the maximum pool size |
void |
setMaxQueueSize(Integer maxQueueSize)
Sets the maximum number of tasks in the work queue. |
void |
setPoolSize(Integer poolSize)
Sets the core pool size (threads to keep minimum in pool) |
void |
setPriority(int priority)
|
void |
setTimeUnit(TimeUnit timeUnit)
Sets the time unit used for keep alive time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolConfig(org.exoplatform.container.xml.InitParams params)
public ThreadPoolConfig()
| Method Detail |
|---|
public String getId()
public void setId(String id)
id - profile idpublic Boolean isDefaultProfile()
public void setDefaultProfile(Boolean defaultProfile)
defaultProfile - the optionpublic Integer getPoolSize()
public void setPoolSize(Integer poolSize)
poolSize - the pool sizepublic Integer getMaxPoolSize()
public void setMaxPoolSize(Integer maxPoolSize)
maxPoolSize - the max pool sizepublic Long getKeepAliveTime()
public void setKeepAliveTime(Long keepAliveTime)
keepAliveTime - the keep alive timepublic TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
timeUnit - the time unitpublic Integer getMaxQueueSize()
public void setMaxQueueSize(Integer maxQueueSize)
maxQueueSize - the max queue sizepublic int getPriority()
public void setPriority(int priority)
public boolean isAsyncMode()
public void setAsyncMode(boolean asyncMode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||