GenericKeyedObjectPool.
This class is not thread-safe; it is only intended to be used to provide attributes used when creating a pool.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_MAX_IDLE_PER_KEY
The default value for the |
| public static final int | DEFAULT_MAX_TOTAL
The default value for the |
| public static final int | DEFAULT_MAX_TOTAL_PER_KEY
The default value for the |
| public static final int | DEFAULT_MIN_IDLE_PER_KEY
The default value for the |
| public static final boolean | DEFAULT_REUSE_CAPACITY_ON_MAINTENANCE
The default value for the |
| public static final boolean | DEFAULT_REUSE_CAPACITY_ON_RETURN
The default value for the |
| private int | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public GenericKeyedObjectPoolConfig | |
| public int | Returns: The current setting ofmaxIdlePerKey for this
configuration instanceGets the value for the |
| public int | Returns: The current setting ofmaxTotal for this
configuration instanceGets the value for the |
| public int | Returns: The current setting ofmaxTotalPerKey for this
configuration instanceGets the value for the |
| public int | Returns: The current setting ofminIdlePerKey for this
configuration instanceGets the value for the |
| public boolean | Returns: The current setting ofreuseCapacityOnMaintenance for this
configuration instanceGets the value for the |
| public boolean | Returns: The current setting ofreuseCapacityOnReturn for this
configuration instanceGets the value for the |
| public void | setMaxIdlePerKey(final int
The new setting of maxIdlePerKey)maxIdlePerKey
for this configuration instanceSets the value for the |
| public void | setMaxTotal(final int
The new setting of maxTotal)maxTotal
for this configuration instanceSets the value for the |
| public void | setMaxTotalPerKey(final int
The new setting of maxTotalPerKey)maxTotalPerKey
for this configuration instanceSets the value for the |
| public void | setMinIdlePerKey(final int
The new setting of minIdlePerKey)minIdlePerKey
for this configuration instanceSets the value for the |
| public void | setReuseCapacityOnMaintenance(final boolean
The new setting of reuseCapacityOnMaintenance)reuseCapacityOnMaintenance
for this configuration instanceSets the value for the |
| public void | setReuseCapacityOnReturn(final boolean
The new setting of reuseCapacityOnReturn)reuseCapacityOnReturn
for this configuration instanceSets the value for the |
| protected void | toStringAppendFields(final StringBuilder builder)
Overrides org. Used by sub-classes to include the fields defined by the sub-class in the
|
| DEFAULT_MAX_IDLE_PER_KEY | back to summary |
|---|---|
| public static final int DEFAULT_MAX_IDLE_PER_KEY The default value for the | |
| DEFAULT_MAX_TOTAL | back to summary |
|---|---|
| public static final int DEFAULT_MAX_TOTAL The default value for the
| |
| DEFAULT_MAX_TOTAL_PER_KEY | back to summary |
|---|---|
| public static final int DEFAULT_MAX_TOTAL_PER_KEY The default value for the | |
| DEFAULT_MIN_IDLE_PER_KEY | back to summary |
|---|---|
| public static final int DEFAULT_MIN_IDLE_PER_KEY The default value for the | |
| DEFAULT_REUSE_CAPACITY_ON_MAINTENANCE | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_CAPACITY_ON_MAINTENANCE The default value for the
| |
| DEFAULT_REUSE_CAPACITY_ON_RETURN | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_CAPACITY_ON_RETURN The default value for the
| |
| maxIdlePerKey | back to summary |
|---|---|
| private int maxIdlePerKey | |
| maxTotal | back to summary |
|---|---|
| private int maxTotal | |
| maxTotalPerKey | back to summary |
|---|---|
| private int maxTotalPerKey | |
| minIdlePerKey | back to summary |
|---|---|
| private int minIdlePerKey | |
| reuseCapacityOnMaintenance | back to summary |
|---|---|
| private boolean reuseCapacityOnMaintenance | |
| reuseCapacityOnReturn | back to summary |
|---|---|
| private boolean reuseCapacityOnReturn | |
| GenericKeyedObjectPoolConfig | back to summary |
|---|---|
| public GenericKeyedObjectPoolConfig() Constructs a new configuration with default settings. | |
| clone | back to summary |
|---|---|
| public GenericKeyedObjectPoolConfig Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getMaxIdlePerKey | back to summary |
|---|---|
| public int getMaxIdlePerKey() Gets the value for the
| |
| getMaxTotal | back to summary |
|---|---|
| public int getMaxTotal() Gets the value for the
| |
| getMaxTotalPerKey | back to summary |
|---|---|
| public int getMaxTotalPerKey() Gets the value for the
| |
| getMinIdlePerKey | back to summary |
|---|---|
| public int getMinIdlePerKey() Gets the value for the
| |
| getReuseCapacityOnMaintenance | back to summary |
|---|---|
| public boolean getReuseCapacityOnMaintenance() Gets the value for the
| |
| getReuseCapacityOnReturn | back to summary |
|---|---|
| public boolean getReuseCapacityOnReturn() Gets the value for the
| |
| setMaxIdlePerKey | back to summary |
|---|---|
| public void setMaxIdlePerKey(final int maxIdlePerKey) Sets the value for the
| |
| setMaxTotal | back to summary |
|---|---|
| public void setMaxTotal(final int maxTotal) Sets the value for the
| |
| setMaxTotalPerKey | back to summary |
|---|---|
| public void setMaxTotalPerKey(final int maxTotalPerKey) Sets the value for the
| |
| setMinIdlePerKey | back to summary |
|---|---|
| public void setMinIdlePerKey(final int minIdlePerKey) Sets the value for the
| |
| setReuseCapacityOnMaintenance | back to summary |
|---|---|
| public void setReuseCapacityOnMaintenance(final boolean reuseCapacityOnMaintenance) Sets the value for the
| |
| setReuseCapacityOnReturn | back to summary |
|---|---|
| public void setReuseCapacityOnReturn(final boolean reuseCapacityOnReturn) Sets the value for the
| |
| toStringAppendFields | back to summary |
|---|---|
| protected void toStringAppendFields(final StringBuilder builder) Overrides org. Doc from org. Used by sub-classes to include the fields defined by the sub-class in the
| |