public interface IPoolConfiguration
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.