|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.utils.threadpool.PoolConfiguration
public class PoolConfiguration
This object holds configuration data for a thread pool.
| Nested Class Summary | |
|---|---|
static class |
PoolConfiguration.WhenBlockedPolicy
|
| Constructor Summary | |
|---|---|
PoolConfiguration()
Default |
|
PoolConfiguration(boolean useBoundary,
int boundarySize,
int maximumPoolSize,
int minimumPoolSize,
int keepAliveTime,
PoolConfiguration.WhenBlockedPolicy whenBlockedPolicy,
int startUpSize)
Construct a completely configured instance. |
|
| Method Summary | |
|---|---|
Object |
clone()
Copies the instance variables to another instance. |
int |
getBoundarySize()
|
int |
getKeepAliveTime()
|
int |
getMaximumPoolSize()
|
int |
getMinimumPoolSize()
|
int |
getStartUpSize()
|
PoolConfiguration.WhenBlockedPolicy |
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(PoolConfiguration.WhenBlockedPolicy whenBlockedPolicy)
|
void |
setWhenBlockedPolicy(String whenBlockedPolicy)
|
String |
toString()
To string for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PoolConfiguration()
public PoolConfiguration(boolean useBoundary,
int boundarySize,
int maximumPoolSize,
int minimumPoolSize,
int keepAliveTime,
PoolConfiguration.WhenBlockedPolicy whenBlockedPolicy,
int startUpSize)
useBoundary - boundarySize - maximumPoolSize - minimumPoolSize - keepAliveTime - whenBlockedPolicy - startUpSize - | 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(String whenBlockedPolicy)
whenBlockedPolicy - The whenBlockedPolicy to set.public void setWhenBlockedPolicy(PoolConfiguration.WhenBlockedPolicy whenBlockedPolicy)
whenBlockedPolicy - The whenBlockedPolicy to set.public PoolConfiguration.WhenBlockedPolicy getWhenBlockedPolicy()
public void setStartUpSize(int startUpSize)
startUpSize - The startUpSize to set.public int getStartUpSize()
public String toString()
toString in class Objectpublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||