GenericObjectPool.
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
The default value for the |
| public static final int | DEFAULT_MAX_TOTAL
The default value for the |
| public static final int | DEFAULT_MIN_IDLE
The default value for the |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public GenericObjectPoolConfig | |
| public int | Returns: The current setting ofmaxIdle 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 ofminIdle for this
configuration instanceGets the value for the |
| public void | setMaxIdle(final int
The new setting of maxIdle)maxIdle
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 | setMinIdle(final int
The new setting of minIdle)minIdle
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 | back to summary |
|---|---|
| public static final int DEFAULT_MAX_IDLE The default value for the
| |
| DEFAULT_MAX_TOTAL | back to summary |
|---|---|
| public static final int DEFAULT_MAX_TOTAL The default value for the
| |
| DEFAULT_MIN_IDLE | back to summary |
|---|---|
| public static final int DEFAULT_MIN_IDLE The default value for the
| |
| maxIdle | back to summary |
|---|---|
| private int maxIdle | |
| maxTotal | back to summary |
|---|---|
| private int maxTotal | |
| minIdle | back to summary |
|---|---|
| private int minIdle | |
| GenericObjectPoolConfig | back to summary |
|---|---|
| public GenericObjectPoolConfig() Constructs a new instance. | |
| clone | back to summary |
|---|---|
| public GenericObjectPoolConfig 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
| |
| getMaxIdle | back to summary |
|---|---|
| public int getMaxIdle() Gets the value for the
| |
| getMaxTotal | back to summary |
|---|---|
| public int getMaxTotal() Gets the value for the
| |
| getMinIdle | back to summary |
|---|---|
| public int getMinIdle() Gets the value for the
| |
| setMaxIdle | back to summary |
|---|---|
| public void setMaxIdle(final int maxIdle) Sets the value for the
| |
| setMaxTotal | back to summary |
|---|---|
| public void setMaxTotal(final int maxTotal) Sets the value for the
| |
| setMinIdle | back to summary |
|---|---|
| public void setMinIdle(final int minIdle) 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
| |