public class LDAPServerConnectionPoolDetails extends LDAPServerDetails
The configuration is stored as public fields which become immutable (final) after their initialisation.
Property keys: [prefix]*
Modifier and Type | Field and Description |
---|---|
long |
connectionMaxAge
The maximum time in milliseconds that a connection in this pool may
be established before it should be closed and replaced with another
connection.
|
int |
connectionPoolMaxWaitTime
The maximum length of time in milliseconds to wait for a connection
to become available when trying to obtain a connection from the
pool.
|
int |
connectionPoolSize
The target connection pool size.
|
static int |
DEFAULT_CONNECTION_MAX_AGE
The default maximum connection time.
|
static int |
DEFAULT_CONNECTION_POOL_MAX_WAIT_TIME
The default connection pool maximum wait time, in milliseconds.
|
static int |
DEFAULT_CONNECTION_POOL_SIZE
The default target connection pool size.
|
connectTimeout, DEFAULT_CONNECT_TIMEOUT, DEFAULT_RESPONSE_TIMEOUT, DEFAULT_SECURITY, DEFAULT_SELECTION_ALGORITHM, DEFAULT_SELF_SIGNED_CERTS_TRUST, responseTimeout, security, selectionAlgorithm, trustSelfSignedCerts, url
LOG_CATEGORY
Constructor and Description |
---|
LDAPServerConnectionPoolDetails(java.lang.String prefix,
java.util.Properties props)
Creates a new LDAP server connection pool details instance from the
specified properties.
|
LDAPServerConnectionPoolDetails(java.lang.String prefix,
java.util.Properties props,
boolean requireURL)
Creates a new LDAP server connection pool details instance from the
specified properties.
|
Modifier and Type | Method and Description |
---|---|
void |
log()
Logs the configuration details at INFO level.
|
public final int connectionPoolSize
Property key: [prefix]connectionPoolSize
public static final int DEFAULT_CONNECTION_POOL_SIZE
public final int connectionPoolMaxWaitTime
Property key: [prefix]connectionPoolMaxWaitTime
public static final int DEFAULT_CONNECTION_POOL_MAX_WAIT_TIME
public final long connectionMaxAge
Property key: [prefix]connectionMaxAge
public static final int DEFAULT_CONNECTION_MAX_AGE
public LDAPServerConnectionPoolDetails(java.lang.String prefix, java.util.Properties props) throws com.thetransactioncompany.util.PropertyParseException
Mandatory properties:
Conditionally mandatory properties:
Optional properties, with defaults:
prefix
- The properties prefix. Must not be null
.props
- The properties. Must not be null
.com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.public LDAPServerConnectionPoolDetails(java.lang.String prefix, java.util.Properties props, boolean requireURL) throws com.thetransactioncompany.util.PropertyParseException
Mandatory properties:
Conditionally mandatory properties:
Optional properties, with defaults:
prefix
- The properties prefix. Must not be null
.props
- The properties. Must not be null
.com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.public void log()
log
in interface LoggableConfiguration
log
in class LDAPServerDetails
Copyright © 2016 Connect2id. All Rights Reserved.