|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPoolConfiguration
This provides values to use for the when-blocked-policy.
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 |
---|
static final java.lang.String POLICY_ABORT
static final java.lang.String POLICY_BLOCK
static final java.lang.String POLICY_RUN
static final java.lang.String POLICY_WAIT
static final java.lang.String POLICY_DISCARDOLDEST
Method Detail |
---|
void setUseBoundary(boolean useBoundary)
useBoundary
- The useBoundary to set.boolean isUseBoundary()
void setBoundarySize(int boundarySize)
boundarySize
- The boundarySize to set.int getBoundarySize()
void setMaximumPoolSize(int maximumPoolSize)
maximumPoolSize
- The maximumPoolSize to set.int getMaximumPoolSize()
void setMinimumPoolSize(int minimumPoolSize)
minimumPoolSize
- The minimumPoolSize to set.int getMinimumPoolSize()
void setKeepAliveTime(int keepAliveTime)
keepAliveTime
- The keepAliveTime to set.int getKeepAliveTime()
void setWhenBlockedPolicy(java.lang.String whenBlockedPolicy)
If an incorrect value is returned, RUN will be used.
whenBlockedPolicy
- The whenBlockedPolicy to set.java.lang.String getWhenBlockedPolicy()
void setStartUpSize(int startUpSize)
startUpSize
- The startUpSize to set.int getStartUpSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |