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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionPoolPropertiesfromPropertiesMap(Map<String, String> map) voidsetInitialSize(String initialSize) voidsetMaximumSize(String maximumSize) voidsetPreferredSize(String preferredSize) voidsetSupportedAuthentication(String supportedAuthentication) voidsetSupportedProtocol(String supportedProtocol) voidsetTimeoutInSec(String timeoutInSec)
-
Constructor Details
-
DefaultConnectionPoolProperties
public DefaultConnectionPoolProperties()
-
-
Method Details
-
getInitialSize
- Specified by:
getInitialSizein interfaceConnectionPoolProperties- Returns:
- Number of connections to create when initially connecting to the pool.
-
setInitialSize
-
getMaximumSize
- Specified by:
getMaximumSizein interfaceConnectionPoolProperties- Returns:
- Maximum number of connections to the LDAP server. Value of 0 means no maximum.
-
setMaximumSize
-
getPreferredSize
- Specified by:
getPreferredSizein interfaceConnectionPoolProperties- Returns:
- The preferred number of connections to be maintained in the pool.
-
setPreferredSize
-
getTimeoutInSec
- Specified by:
getTimeoutInSecin 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:
getSupportedAuthenticationin interfaceConnectionPoolProperties- Returns:
- The specified authentication types will be pooled. Valid types are: none, simple, DIGEST-MD5.
-
setSupportedAuthentication
-
getSupportedProtocol
- Specified by:
getSupportedProtocolin interfaceConnectionPoolProperties- Returns:
- The specified protocol types will be pooled. Valid types are: plain, ssl.
-
setSupportedProtocol
-
toPropertiesMap
- Specified by:
toPropertiesMapin interfaceConnectionPoolProperties- Returns:
- The JNDI LDAP connection pool properties as a map.
-
fromPropertiesMap
-