LoggableConfiguration
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 | 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 |
connectionPoolInitialSize |
The initial connection pool size.
|
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_INITIAL_SIZE |
The default initial connection pool size (zero connections).
|
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 (5 connections).
|
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 | Description |
---|---|
LDAPServerConnectionPoolDetails(String prefix,
Properties props) |
Creates a new LDAP server connection pool details instance from the
specified properties.
|
LDAPServerConnectionPoolDetails(String prefix,
Properties props,
boolean requireURL) |
Creates a new LDAP server connection pool details instance from the
specified properties.
|
public final int connectionPoolSize
Property key: [prefix]connectionPoolSize
public static final int DEFAULT_CONNECTION_POOL_SIZE
public final int connectionPoolInitialSize
connectionPoolSize
.
Property key: [prefix]connectionPoolInitialSize
public static final int DEFAULT_CONNECTION_POOL_INITIAL_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(String prefix, 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(String prefix, 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 © 2018 Connect2id. All rights reserved.