|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.pool2.impl.BaseObjectPoolConfig
org.apache.commons.pool2.impl.GenericObjectPoolConfig
public class GenericObjectPoolConfig
A simple "struct" encapsulating the configuration for a
GenericObjectPool
.
This class is not thread-safe; it is only intended to be used to provide attributes used when creating a pool.
Field Summary | |
---|---|
static int |
DEFAULT_MAX_IDLE
The default value for the maxIdle configuration attribute. |
static int |
DEFAULT_MAX_TOTAL
The default value for the maxTotal configuration attribute. |
static int |
DEFAULT_MIN_IDLE
The default value for the minIdle configuration attribute. |
Constructor Summary | |
---|---|
GenericObjectPoolConfig()
|
Method Summary | |
---|---|
GenericObjectPoolConfig |
clone()
|
int |
getMaxIdle()
Get the value for the maxIdle configuration attribute
for pools created with this configuration instance. |
int |
getMaxTotal()
Get the value for the maxTotal configuration attribute
for pools created with this configuration instance. |
int |
getMinIdle()
Get the value for the minIdle configuration attribute
for pools created with this configuration instance. |
void |
setMaxIdle(int maxIdle)
Set the value for the maxIdle configuration attribute for
pools created with this configuration instance. |
void |
setMaxTotal(int maxTotal)
Set the value for the maxTotal configuration attribute for
pools created with this configuration instance. |
void |
setMinIdle(int minIdle)
Set the value for the minIdle configuration attribute for
pools created with this configuration instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_TOTAL
maxTotal
configuration attribute.
BaseGenericObjectPool.getMaxTotal()
,
Constant Field Valuespublic static final int DEFAULT_MAX_IDLE
maxIdle
configuration attribute.
GenericObjectPool.getMaxIdle()
,
Constant Field Valuespublic static final int DEFAULT_MIN_IDLE
minIdle
configuration attribute.
GenericObjectPool.getMinIdle()
,
Constant Field ValuesConstructor Detail |
---|
public GenericObjectPoolConfig()
Method Detail |
---|
public int getMaxTotal()
maxTotal
configuration attribute
for pools created with this configuration instance.
maxTotal
for this
configuration instanceBaseGenericObjectPool.getMaxTotal()
public void setMaxTotal(int maxTotal)
maxTotal
configuration attribute for
pools created with this configuration instance.
maxTotal
- The new setting of maxTotal
for this configuration instanceBaseGenericObjectPool.setMaxTotal(int)
public int getMaxIdle()
maxIdle
configuration attribute
for pools created with this configuration instance.
maxIdle
for this
configuration instanceGenericObjectPool.getMaxIdle()
public void setMaxIdle(int maxIdle)
maxIdle
configuration attribute for
pools created with this configuration instance.
maxIdle
- The new setting of maxIdle
for this configuration instanceGenericObjectPool.setMaxIdle(int)
public int getMinIdle()
minIdle
configuration attribute
for pools created with this configuration instance.
minIdle
for this
configuration instanceGenericObjectPool.getMinIdle()
public void setMinIdle(int minIdle)
minIdle
configuration attribute for
pools created with this configuration instance.
minIdle
- The new setting of minIdle
for this configuration instanceGenericObjectPool.setMinIdle(int)
public GenericObjectPoolConfig clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |