|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static java.lang.String |
POLICY_ABORT
abort when queue is full and max threads is reached. |
static java.lang.String |
POLICY_BLOCK
block when queue is full and max threads is reached. |
static java.lang.String |
POLICY_DISCARDOLDEST
discard oldest when queue is full and max threads is reached. |
static java.lang.String |
POLICY_RUN
run in current thread when queue is full and max threads is reached. |
static java.lang.String |
POLICY_WAIT
wait when queue is full and max threads is reached. |
Method Summary | |
int |
getBoundarySize()
|
int |
getKeepAliveTime()
|
int |
getMaximumPoolSize()
|
int |
getMinimumPoolSize()
|
int |
getStartUpSize()
|
java.lang.String |
getWhenBlockedPolicy()
|
boolean |
isUseBoundary()
|
void |
setBoundarySize(int boundarySize)
|
void |
setKeepAliveTime(int keepAliveTime)
|
void |
setMaximumPoolSize(int maximumPoolSize)
|
void |
setMinimumPoolSize(int minimumPoolSize)
|
void |
setStartUpSize(int startUpSize)
|
void |
setUseBoundary(boolean useBoundary)
|
void |
setWhenBlockedPolicy(java.lang.String whenBlockedPolicy)
should be ABORT, BLOCK, RUN, WAIT, DISCARDOLDEST. |
Field Detail |
public static final java.lang.String POLICY_ABORT
public static final java.lang.String POLICY_BLOCK
public static final java.lang.String POLICY_RUN
public static final java.lang.String POLICY_WAIT
public static final java.lang.String POLICY_DISCARDOLDEST
Method Detail |
public void setUseBoundary(boolean useBoundary)
useBoundary
- The useBoundary to set.public boolean isUseBoundary()
public void setBoundarySize(int boundarySize)
boundarySize
- The boundarySize to set.public int getBoundarySize()
public void setMaximumPoolSize(int maximumPoolSize)
maximumPoolSize
- The maximumPoolSize to set.public int getMaximumPoolSize()
public void setMinimumPoolSize(int minimumPoolSize)
minimumPoolSize
- The minimumPoolSize to set.public int getMinimumPoolSize()
public void setKeepAliveTime(int keepAliveTime)
keepAliveTime
- The keepAliveTime to set.public int getKeepAliveTime()
public void setWhenBlockedPolicy(java.lang.String whenBlockedPolicy)
whenBlockedPolicy
- The whenBlockedPolicy to set.public java.lang.String getWhenBlockedPolicy()
public void setStartUpSize(int startUpSize)
startUpSize
- The startUpSize to set.public int getStartUpSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |