com.atlassian.crowd.embedded.impl
Class DefaultConnectionPoolProperties
java.lang.Object
com.atlassian.crowd.embedded.impl.DefaultConnectionPoolProperties
- All Implemented Interfaces:
- ConnectionPoolProperties
public class DefaultConnectionPoolProperties
- extends Object
- implements ConnectionPoolProperties
Form-backing bean used to set default values in the connection pool UI and convert
the values for storage as application attributes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConnectionPoolProperties
public DefaultConnectionPoolProperties()
getInitialSize
public String getInitialSize()
- Specified by:
getInitialSize
in interface ConnectionPoolProperties
- Returns:
- Number of connections to create when initially connecting to the pool.
setInitialSize
public void setInitialSize(String initialSize)
getMaximumSize
public String getMaximumSize()
- Specified by:
getMaximumSize
in interface ConnectionPoolProperties
- Returns:
- Maximum number of connections to the LDAP server. Value of 0 means no maximum.
setMaximumSize
public void setMaximumSize(String maximumSize)
getPreferredSize
public String getPreferredSize()
- Specified by:
getPreferredSize
in interface ConnectionPoolProperties
- Returns:
- The preferred number of connections to be maintained in the pool.
setPreferredSize
public void setPreferredSize(String preferredSize)
getTimeoutInSec
public String getTimeoutInSec()
- Specified by:
getTimeoutInSec
in interface ConnectionPoolProperties
- Returns:
- Idle time in seconds for a connection before it is removed from the pool. Value of 0 means there is no timeout.
setTimeoutInSec
public void setTimeoutInSec(String timeoutInSec)
getSupportedAuthentication
public String getSupportedAuthentication()
- Specified by:
getSupportedAuthentication
in interface ConnectionPoolProperties
- Returns:
- The specified authentication types will be pooled. Valid types are: none, simple, DIGEST-MD5.
setSupportedAuthentication
public void setSupportedAuthentication(String supportedAuthentication)
getSupportedProtocol
public String getSupportedProtocol()
- Specified by:
getSupportedProtocol
in interface ConnectionPoolProperties
- Returns:
- The specified protocol types will be pooled. Valid types are: plain, ssl.
setSupportedProtocol
public void setSupportedProtocol(String supportedProtocol)
toPropertiesMap
public Map<String,String> toPropertiesMap()
- Specified by:
toPropertiesMap
in interface ConnectionPoolProperties
- Returns:
- The LDAP connection pool properties as a map.
fromPropertiesMap
public static ConnectionPoolProperties fromPropertiesMap(Map<String,String> map)
Copyright © 2013 Atlassian. All Rights Reserved.