Class DefaultConnectionPoolProperties
java.lang.Object
com.atlassian.crowd.embedded.impl.DefaultConnectionPoolProperties
- All Implemented Interfaces:
ConnectionPoolProperties
Form-backing bean used to set default values in the JNDI LDAP connection pool UI and convert
the values for storage as application attributes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionPoolProperties
fromPropertiesMap
(Map<String, String> map) void
setInitialSize
(String initialSize) void
setMaximumSize
(String maximumSize) void
setPreferredSize
(String preferredSize) void
setSupportedAuthentication
(String supportedAuthentication) void
setSupportedProtocol
(String supportedProtocol) void
setTimeoutInSec
(String timeoutInSec)
-
Constructor Details
-
DefaultConnectionPoolProperties
public DefaultConnectionPoolProperties()
-
-
Method Details
-
getInitialSize
- Specified by:
getInitialSize
in interfaceConnectionPoolProperties
- Returns:
- Number of connections to create when initially connecting to the pool.
-
setInitialSize
-
getMaximumSize
- Specified by:
getMaximumSize
in interfaceConnectionPoolProperties
- Returns:
- Maximum number of connections to the LDAP server. Value of 0 means no maximum.
-
setMaximumSize
-
getPreferredSize
- Specified by:
getPreferredSize
in interfaceConnectionPoolProperties
- Returns:
- The preferred number of connections to be maintained in the pool.
-
setPreferredSize
-
getTimeoutInSec
- Specified by:
getTimeoutInSec
in interfaceConnectionPoolProperties
- Returns:
- Idle time in seconds for a connection before it is removed from the pool. Value of 0 means there is no timeout.
-
setTimeoutInSec
-
getSupportedAuthentication
- Specified by:
getSupportedAuthentication
in interfaceConnectionPoolProperties
- Returns:
- The specified authentication types will be pooled. Valid types are: none, simple, DIGEST-MD5.
-
setSupportedAuthentication
-
getSupportedProtocol
- Specified by:
getSupportedProtocol
in interfaceConnectionPoolProperties
- Returns:
- The specified protocol types will be pooled. Valid types are: plain, ssl.
-
setSupportedProtocol
-
toPropertiesMap
- Specified by:
toPropertiesMap
in interfaceConnectionPoolProperties
- Returns:
- The JNDI LDAP connection pool properties as a map.
-
fromPropertiesMap
-