|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractConfig
org.ldaptive.pool.PoolConfig
public class PoolConfig
Contains all the configuration data that the pooling implementations need to control the pool.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_POOL_SIZE
Default max pool size, value is 10. |
static int |
DEFAULT_MIN_POOL_SIZE
Default min pool size, value is 3. |
static boolean |
DEFAULT_VALIDATE_ON_CHECKIN
Default validate on check in, value is false. |
static boolean |
DEFAULT_VALIDATE_ON_CHECKOUT
Default validate on check out, value is false. |
static long |
DEFAULT_VALIDATE_PERIOD
Default validate period, value is 1800L. |
static boolean |
DEFAULT_VALIDATE_PERIODICALLY
Default validate periodically, value is false. |
| Fields inherited from class org.ldaptive.AbstractConfig |
|---|
logger |
| Constructor Summary | |
|---|---|
PoolConfig()
|
|
| Method Summary | |
|---|---|
int |
getMaxPoolSize()
Returns the max pool size. |
int |
getMinPoolSize()
Returns the min pool size. |
long |
getValidatePeriod()
Returns the validate period. |
boolean |
isValidateOnCheckIn()
Returns the validate on check in flag. |
boolean |
isValidateOnCheckOut()
Returns the validate on check out flag. |
boolean |
isValidatePeriodically()
Returns the validate periodically flag. |
void |
setMaxPoolSize(int size)
Sets the max pool size. |
void |
setMinPoolSize(int size)
Sets the min pool size. |
void |
setValidateOnCheckIn(boolean b)
Sets the validate on check in flag. |
void |
setValidateOnCheckOut(boolean b)
Sets the validate on check out flag. |
void |
setValidatePeriod(long time)
Sets the period for which the pool will be validated. |
void |
setValidatePeriodically(boolean b)
Sets the validate periodically flag. |
String |
toString()
|
| Methods inherited from class org.ldaptive.AbstractConfig |
|---|
checkImmutable, checkStringInput, makeImmutable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MIN_POOL_SIZE
public static final int DEFAULT_MAX_POOL_SIZE
public static final boolean DEFAULT_VALIDATE_ON_CHECKIN
public static final boolean DEFAULT_VALIDATE_ON_CHECKOUT
public static final boolean DEFAULT_VALIDATE_PERIODICALLY
public static final long DEFAULT_VALIDATE_PERIOD
| Constructor Detail |
|---|
public PoolConfig()
| Method Detail |
|---|
public int getMinPoolSize()
DEFAULT_MIN_POOL_SIZE.
This value represents the size of the pool after a prune has occurred.
public void setMinPoolSize(int size)
size - min pool sizepublic int getMaxPoolSize()
DEFAULT_MAX_POOL_SIZE.
This value may or may not be strictly enforced depending on the pooling
implementation.
public void setMaxPoolSize(int size)
size - max pool sizepublic boolean isValidateOnCheckIn()
DEFAULT_VALIDATE_ON_CHECKIN.
public void setValidateOnCheckIn(boolean b)
b - validate on check inpublic boolean isValidateOnCheckOut()
DEFAULT_VALIDATE_ON_CHECKOUT.
public void setValidateOnCheckOut(boolean b)
b - validate on check outpublic boolean isValidatePeriodically()
DEFAULT_VALIDATE_PERIODICALLY.
public void setValidatePeriodically(boolean b)
b - validate periodicallypublic long getValidatePeriod()
DEFAULT_VALIDATE_PERIOD.
public void setValidatePeriod(long time)
time - in secondspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||