@Documented @Inherited @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface CreateLdapConnectionPool
Modifier and Type | Optional Element and Description |
---|---|
String[] |
additionalBinaryAttributes
Attributes names to be added to the list of default binary attributes
|
Class<? extends org.apache.directory.ldap.client.api.LdapConnectionFactory> |
connectionFactoryClass
LdapConnection factory implementation class
|
Class<? extends org.apache.commons.pool.PoolableObjectFactory<org.apache.directory.ldap.client.api.LdapConnection>> |
factoryClass
LdapConnection pool factory implementation class
|
boolean |
lifo
Connections borrowed in LIFO order, default true
|
int |
maxActive
The maximum number of active connections, default 8
|
int |
maxIdle
The maximum number of idle connections, default 8
|
long |
maxWait
The maximum amount of time to wait for a connection to be returned in millis, default -1
|
long |
minEvictableIdleTimeMillis
The minimum idle time before evicting a connection in millis, default 1000*60*30
|
int |
minIdle
The minumum number of idle instances before evictor spawns new object, default 0
|
int |
numTestsPerEvictionRun
The number of objects to test per eviction run, default 3
|
long |
softMinEvictableIdleTimeMillis
Same as minEvictableIdleTimeMillis with extra condition that minIdle objects remain in pool, default -1
|
boolean |
testOnBorrow
If true, connection will be tested on borrow, default false
|
boolean |
testOnReturn
If true, connection will be tested on return, default false
|
boolean |
testWhileIdle
If true, connection will be tested on while idle, default false
|
long |
timeBetweenEvictionRunsMillis
The time, in millis, between eviction runs, default -1 (forever)
|
long |
timeout
The connection timeout in millis, default 30000
|
Class<? extends org.apache.directory.ldap.client.api.LdapConnectionValidator> |
validatorClass
The class to use for validation
|
byte |
whenExhaustedAction
The default action when connections are exhausted, default 1 (block)
|
public abstract String[] additionalBinaryAttributes
public abstract Class<? extends org.apache.directory.ldap.client.api.LdapConnectionFactory> connectionFactoryClass
public abstract Class<? extends org.apache.commons.pool.PoolableObjectFactory<org.apache.directory.ldap.client.api.LdapConnection>> factoryClass
public abstract int maxActive
public abstract long maxWait
public abstract long minEvictableIdleTimeMillis
public abstract int minIdle
public abstract int numTestsPerEvictionRun
public abstract long softMinEvictableIdleTimeMillis
public abstract boolean testOnBorrow
public abstract boolean testOnReturn
public abstract boolean testWhileIdle
public abstract long timeBetweenEvictionRunsMillis
public abstract long timeout
public abstract Class<? extends org.apache.directory.ldap.client.api.LdapConnectionValidator> validatorClass
Copyright © 2019. All rights reserved.