@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class PooledReferralConnectorProperties extends java.lang.Object
PooledReferralConnector
. Changing any properties after a
connector is created will not cause any changes in the connector.Constructor and Description |
---|
PooledReferralConnectorProperties()
Creates a new set of pooled referral connector properties with the default
settings.
|
PooledReferralConnectorProperties(PooledReferralConnectorProperties properties)
Creates a new set of pooled referral connector properties that is a
duplicate of the provided set of properties.
|
Modifier and Type | Method and Description |
---|---|
BindRequest |
getBindRequest()
Retrieves the bind request that should be used to authenticate pooled
connections, if defined.
|
LDAPConnectionOptions |
getConnectionOptions()
Retrieves the set of options that will be used when establishing new pooled
connections for the purpose of following referrals.
|
LDAPConnectionPoolHealthCheck |
getHealthCheck()
Retrieves the health check that should be used to determine whether pooled
connections are still valid.
|
long |
getHealthCheckIntervalMillis()
Retrieves the length of time in milliseconds between background health
checks performed against pooled connections.
|
int |
getInitialConnectionsPerPool()
Retrieves the initial number of connections to establish when creating a
new connection pool for the purpose of following referrals.
|
PooledReferralConnectorLDAPURLSecurityType |
getLDAPURLSecurityType()
Indicates the type of communication security that the referral connector
should use when creating connections for referral URLs with a scheme of
"ldap".
|
long |
getMaximumConnectionAgeMillis()
Retrieves the maximum length of time in milliseconds that each pooled
connection may remain established.
|
int |
getMaximumConnectionsPerPool()
Retrieves the maximum number of idle connections that the server should
maintain in each connection pool used for following referrals.
|
long |
getMaximumPoolAgeMillis()
Retrieves the maximum length of time in milliseconds that a connection pool
created for the purpose of following referrals should be retained,
regardless of how often it is used.
|
long |
getMaximumPoolIdleDurationMillis()
Retrieves the maximum length of time in milliseconds that a connection pool
created for the purpose of following referrals should be retained after its
most recent use.
|
javax.net.ssl.SSLSocketFactory |
getSSLSocketFactory()
Retrieves the SSL socket factory that will be used when performing TLS
negotiation on any new connections created for the purpose of following
referrals.
|
boolean |
retryFailedOperationsDueToInvalidConnections()
Indicates whether the connection pools should be configured to
automatically retry an operation on a newly established connection if the
initial attempt fails in a manner that suggests that the connection may no
longer be valid.
|
void |
setBindRequest(BindRequest bindRequest)
Specifies the bind request that should be used to authenticate pooled
connections.
|
void |
setConnectionOptions(LDAPConnectionOptions connectionOptions)
Specifies the set of options that will be used when establishing new pooled
connections for the purpose of following referrals.
|
void |
setHealthCheck(LDAPConnectionPoolHealthCheck healthCheck)
Specifies the health check that should be used to determine whether pooled
connections are still valid.
|
void |
setHealthCheckIntervalMillis(long healthCheckIntervalMillis)
Specifies the length of time in milliseconds between background health
checks performed against pooled connections.
|
void |
setInitialConnectionsPerPool(int initialConnectionsPerPool)
Specifies the initial number of connections to establish when creating a
new connection pool for the purpose of following referrals.
|
void |
setLDAPURLSecurityType(PooledReferralConnectorLDAPURLSecurityType ldapURLSecurityType)
Specifies the type of communication security that the referral connector
should use when creating connections for referral URLs with a scheme of
"ldap".
|
void |
setMaximumConnectionAgeMillis(long maximumConnectionAgeMillis)
Specifies the maximum length of time in milliseconds that each pooled
connection may remain established.
|
void |
setMaximumConnectionsPerPool(int maximumConnectionsPerPool)
Specifies the maximum number of idle connections that the server should
maintain in each connection pool used for following referrals.
|
void |
setMaximumPoolAgeMillis(long maximumPoolAgeMillis)
Specifies the maximum length of time in milliseconds that a connection pool
created for the purpose of following referrals should be retained,
regardless of how often it is used.
|
void |
setMaximumPoolIdleDurationMillis(long maximumPoolIdleDurationMillis)
Specifies the maximum length of time in milliseconds that a connection pool
created for the purpose of following referrals should be retained after its
most recent use.
|
void |
setRetryFailedOperationsDueToInvalidConnections(boolean retryFailedOperationsDueToInvalidConnections)
Specifies whether the connection pools should be configured to
automatically retry an operation on a newly established connection if the
initial attempt fails in a manner that suggests that the connection may no
longer be valid.
|
void |
setSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory)
Specifies the SSL socket factory that will be used when performing TLS
negotiation on any new connections created for the purpose of following
referrals.
|
java.lang.String |
toString()
Retrieves a string representation of the pooled referral connector
properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the pooled referral connector properties
to the provided buffer.
|
public PooledReferralConnectorProperties()
public PooledReferralConnectorProperties(@NotNull PooledReferralConnectorProperties properties)
properties
- The set of properties to duplicate. It must not be
null
.public int getInitialConnectionsPerPool()
public void setInitialConnectionsPerPool(int initialConnectionsPerPool)
initialConnectionsPerPool
- The initial number of connections to establish when creating a
new connection pool for the purpose of following referrals.
It must be greater than or equal to 1, and the initial number
of connections per pool must ultimately be less than or equal
to the maximum number of connections per pool.public int getMaximumConnectionsPerPool()
public void setMaximumConnectionsPerPool(int maximumConnectionsPerPool)
maximumConnectionsPerPool
- The maximum number of idle connections that the server should
maintain in each connection pool used for following referrals.
It must be greater than or equal to 1, and the initial number
of connections per pool must ultimately be less than or equal
to the maximum number of connections per pool.public boolean retryFailedOperationsDueToInvalidConnections()
true
if connection pools should be configured to
automatically retry an operation on a newly established connection
if the initial attempt fails in a manner that suggests the
connection may no longer be valid, or false
if not.public void setRetryFailedOperationsDueToInvalidConnections(boolean retryFailedOperationsDueToInvalidConnections)
retryFailedOperationsDueToInvalidConnections
- Indicates whether the connection pools should be configured to
automatically retry an operation on a newly established
connection if the initial attempt fails in a manner that
suggests that the connection may no longer be valid.public long getMaximumConnectionAgeMillis()
public void setMaximumConnectionAgeMillis(long maximumConnectionAgeMillis)
maximumConnectionAgeMillis
- The maximum length of time in milliseconds that each pooled
connection may remain established. A value that is less than
or equal to zero indicates that pooled connections will be
allowed to remain established indefinitely.public long getMaximumPoolAgeMillis()
public void setMaximumPoolAgeMillis(long maximumPoolAgeMillis)
maximumPoolAgeMillis
- The maximum length of time in milliseconds that a referral
connection pool should be retained. A value that is less than
or equal to zero indicates that connection pools should not be
automatically closed based on their age.public long getMaximumPoolIdleDurationMillis()
public void setMaximumPoolIdleDurationMillis(long maximumPoolIdleDurationMillis)
maximumPoolIdleDurationMillis
- The maximum length of time in milliseconds that a connection
pool created for the purpose of following referrals should be
retained after its most recent use. A value that is less than
or equal to zero indicates that connection pools should not be
automatically closed based on how long it has been since they
were last used.@Nullable public LDAPConnectionPoolHealthCheck getHealthCheck()
null
if no special
health checking should be performed.public void setHealthCheck(@Nullable LDAPConnectionPoolHealthCheck healthCheck)
healthCheck
- The health check that should be used to determine whether
pooled connections are still valid. It may be null
if
no special health checking should be performed.public long getHealthCheckIntervalMillis()
public void setHealthCheckIntervalMillis(long healthCheckIntervalMillis)
healthCheckIntervalMillis
- The length of time in milliseconds between background health
checks performed against pooled connections. It must be
greater than zero.@Nullable public BindRequest getBindRequest()
null
if pooled connections should be
authenticated with the same bind request that was used to
authenticate the connection on which the referral was received.public void setBindRequest(@Nullable BindRequest bindRequest)
bindRequest
- The bind request that should be used to authenticate pooled
connections. It may be null
if connections should be
authenticated with the same bind request used to authenticate
a connection on which a referral was received (with separate
pools used for referrals received on connections authenticated
as different users).@Nullable public LDAPConnectionOptions getConnectionOptions()
null
if new connections will use the same set of options
as the connection on which a referral was received.public void setConnectionOptions(@Nullable LDAPConnectionOptions connectionOptions)
connectionOptions
- The set of options that will be used when establishing new
pooled connections for the purpose of following referrals. It
may be null
if new connections should use the same set
of options as the connection on which a referral was received.@NotNull public PooledReferralConnectorLDAPURLSecurityType getLDAPURLSecurityType()
PooledReferralConnectorLDAPURLSecurityType
enum for more information. By default, the
CONDITIONALLY_USE_LDAP_AND_CONDITIONALLY_USE_START_TLS
security
type will be used.public void setLDAPURLSecurityType(@NotNull PooledReferralConnectorLDAPURLSecurityType ldapURLSecurityType)
PooledReferralConnectorLDAPURLSecurityType
enum for more information. By default, the
CONDITIONALLY_USE_LDAP_AND_CONDITIONALLY_USE_START_TLS
security
type will be used.ldapURLSecurityType
- The type of communication security that the referral connector
should use when creating connections for referral URLs with a
scheme of "ldap". It must not be null
.@Nullable public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
null
if new pooled connections
will use the same socket factory as the connection on which a
referral was received.public void setSSLSocketFactory(@Nullable javax.net.ssl.SSLSocketFactory sslSocketFactory)
sslSocketFactory
- The SSL socket factory that will be used when performing TLS
negotiation on any new connections created for the purpose of
following referrals. It may be null
if new pooled
connections should use the same socket factory as the
connection on which a referral was received.@NotNull public java.lang.String toString()
toString
in class java.lang.Object