|
||||||||||
| 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.GenericKeyedObjectPoolConfig
public class GenericKeyedObjectPoolConfig
A simple "struct" encapsulating the configuration for a
GenericKeyedObjectPool.
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_PER_KEY
The default value for the minIdlePerKey configuration attribute. |
static int |
DEFAULT_MAX_TOTAL
The default value for the maxTotal configuration attribute. |
static int |
DEFAULT_MAX_TOTAL_PER_KEY
The default value for the maxTotalPerKey configuration attribute. |
static int |
DEFAULT_MIN_IDLE_PER_KEY
The default value for the minIdlePerKey configuration attribute. |
| Constructor Summary | |
|---|---|
GenericKeyedObjectPoolConfig()
Create a new configuration with default settings. |
|
| Method Summary | |
|---|---|
GenericKeyedObjectPoolConfig |
clone()
|
int |
getMaxIdlePerKey()
Get the value for the maxIdlePerKey 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 |
getMaxTotalPerKey()
Get the value for the maxTotalPerKey configuration attribute
for pools created with this configuration instance. |
int |
getMinIdlePerKey()
Get the value for the minIdlePerKey configuration attribute
for pools created with this configuration instance. |
void |
setMaxIdlePerKey(int maxIdlePerKey)
Set the value for the maxIdlePerKey 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 |
setMaxTotalPerKey(int maxTotalPerKey)
Set the value for the maxTotalPerKey configuration attribute for
pools created with this configuration instance. |
void |
setMinIdlePerKey(int minIdlePerKey)
Set the value for the minIdlePerKey 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_PER_KEY
maxTotalPerKey configuration attribute.
GenericKeyedObjectPool.getMaxTotalPerKey(),
Constant Field Valuespublic static final int DEFAULT_MAX_TOTAL
maxTotal configuration attribute.
BaseGenericObjectPool.getMaxTotal(),
Constant Field Valuespublic static final int DEFAULT_MIN_IDLE_PER_KEY
minIdlePerKey configuration attribute.
GenericKeyedObjectPool.getMinIdlePerKey(),
Constant Field Valuespublic static final int DEFAULT_MAX_IDLE_PER_KEY
minIdlePerKey configuration attribute.
GenericKeyedObjectPool.getMaxIdlePerKey(),
Constant Field Values| Constructor Detail |
|---|
public GenericKeyedObjectPoolConfig()
| 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 getMaxTotalPerKey()
maxTotalPerKey configuration attribute
for pools created with this configuration instance.
maxTotalPerKey for this
configuration instanceGenericKeyedObjectPool.getMaxTotalPerKey()public void setMaxTotalPerKey(int maxTotalPerKey)
maxTotalPerKey configuration attribute for
pools created with this configuration instance.
maxTotalPerKey - The new setting of maxTotalPerKey
for this configuration instanceGenericKeyedObjectPool.setMaxTotalPerKey(int)public int getMinIdlePerKey()
minIdlePerKey configuration attribute
for pools created with this configuration instance.
minIdlePerKey for this
configuration instanceGenericKeyedObjectPool.getMinIdlePerKey()public void setMinIdlePerKey(int minIdlePerKey)
minIdlePerKey configuration attribute for
pools created with this configuration instance.
minIdlePerKey - The new setting of minIdlePerKey
for this configuration instanceGenericKeyedObjectPool.setMinIdlePerKey(int)public int getMaxIdlePerKey()
maxIdlePerKey configuration attribute
for pools created with this configuration instance.
maxIdlePerKey for this
configuration instanceGenericKeyedObjectPool.getMaxIdlePerKey()public void setMaxIdlePerKey(int maxIdlePerKey)
maxIdlePerKey configuration attribute for
pools created with this configuration instance.
maxIdlePerKey - The new setting of maxIdlePerKey
for this configuration instanceGenericKeyedObjectPool.setMaxIdlePerKey(int)public GenericKeyedObjectPoolConfig clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||