/** * Set the action to take when the pool is exhausted. Uses the * constant names defined in Commons Pool's GenericObjectPool class: * "WHEN_EXHAUSTED_BLOCK", "WHEN_EXHAUSTED_FAIL", "WHEN_EXHAUSTED_GROW". * @see #setWhenExhaustedAction(byte) */ public void setWhenExhaustedActionName(String whenExhaustedActionName) { setWhenExhaustedAction(constants.asNumber(whenExhaustedActionName).byteValue()); }
/** * Set the action to take when the pool is exhausted. Uses the * constant names defined in Commons Pool's GenericObjectPool class: * "WHEN_EXHAUSTED_BLOCK", "WHEN_EXHAUSTED_FAIL", "WHEN_EXHAUSTED_GROW". * @see #setWhenExhaustedAction(byte) */ public void setWhenExhaustedActionName(String whenExhaustedActionName) { setWhenExhaustedAction(constants.asNumber(whenExhaustedActionName).byteValue()); }