public static class LdapProviderConfig.PoolConfig extends Object
GenericObjectPool
)Constructor and Description |
---|
PoolConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxActive()
Returns the maximum number of objects that can be allocated by the pool
(checked out to clients, or idle awaiting checkout) at a given time.
|
boolean |
lookupOnValidate()
Defines if the lookup on validate flag is enabled.
|
LdapProviderConfig.PoolConfig |
setLookupOnValidate(boolean lookupOnValidate)
Sets the lookup on validate flag.
|
LdapProviderConfig.PoolConfig |
setMaxActive(int maxActive)
Sets the cap on the number of objects that can be allocated by the pool.
|
String |
toString() |
public int getMaxActive()
setMaxActive(int)
@Nonnull public LdapProviderConfig.PoolConfig setMaxActive(int maxActive)
maxActive
- the new upper limit of the pool sizegetMaxActive()
public boolean lookupOnValidate()
true
if the flag is enabled.@Nonnull public LdapProviderConfig.PoolConfig setLookupOnValidate(boolean lookupOnValidate)
lookupOnValidate
- the new value of the lookup on validate flaglookupOnValidate()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.