Class JdbcAuditEventHandlerConfiguration.ConnectionPool
java.lang.Object
org.forgerock.audit.handlers.jdbc.JdbcAuditEventHandlerConfiguration.ConnectionPool
- Enclosing class:
- JdbcAuditEventHandlerConfiguration
Configuration for a connection pool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the auto commit value.int
Gets the maximum amount of time to wait for a connection from the connection pool.Gets the datasource class name for the JDBC database.Gets the class name of the driver to use for the jdbc connection.int
Gets the maximum time a connection is allowed to be idle.Gets the JDBC database url.int
Gets the maximum lifetime of a connection in the connection pool.int
Gets the maximum size of the connection pool.int
Gets the minimum number of idle connections in the connection pool.Gets the password to use to connect to the JDBC database.Gets the name of the connection pool.Gets the username to use to connect to the JDBC database.void
setAutoCommit
(boolean autoCommit) Sets the auto commit value.void
setConnectionTimeout
(int connectionTimeout) Sets the maximum amount of time to wait for a connection from the connection pool.void
setDataSourceClassName
(String driverClass) Sets the datasource class name for the configured database.void
setDriverClassName
(String driverClassName) Sets the class name of the driver to use for the jdbc connection.void
setIdleTimeout
(int idleTimeout) Sets the maximum time a connection is allowed to be idle.void
setJdbcUrl
(String jdbcUrl) Sets the JDBC database url.void
setMaxLifetime
(int maxLifetime) Sets the maximum lifetime of a connection in the connection pool.void
setMaxPoolSize
(int maxPoolSize) Sets the maximum size of the connection pool.void
setMinIdle
(int minIdle) Sets the minimum number of idle connections in the connection pool.void
setPassword
(String password) Sets the password to use to connect to the JDBC database.void
setPoolName
(String poolName) Sets the name of the connection pool.void
setUsername
(String username) Sets the username to use to connect to the JDBC database.
-
Constructor Details
-
ConnectionPool
public ConnectionPool()
-
-
Method Details
-
getDriverClassName
Gets the class name of the driver to use for the jdbc connection.- Returns:
- The class name.
-
setDriverClassName
Sets the class name of the driver to use for the jdbc connection.- Parameters:
driverClassName
- The driver class name.
-
getDataSourceClassName
Gets the datasource class name for the JDBC database.- Returns:
- The JDBC driver class
-
setDataSourceClassName
Sets the datasource class name for the configured database.- Parameters:
driverClass
- The name of the JDBC driver class.
-
getJdbcUrl
Gets the JDBC database url.- Returns:
- The JDBC database url.
-
setJdbcUrl
Sets the JDBC database url.- Parameters:
jdbcUrl
- The name of the JDBC database url.
-
getUsername
Gets the username to use to connect to the JDBC database.- Returns:
- The username to used to connect to the JDBC database.
-
setUsername
Sets the username to use to connect to the JDBC database.- Parameters:
username
- The username to used to connect to the JDBC database.
-
getPassword
Gets the password to use to connect to the JDBC database.- Returns:
- The password to used to connect to the JDBC database.
-
setPassword
Sets the password to use to connect to the JDBC database.- Parameters:
password
- The password to used to connect to the JDBC database.
-
getPoolName
Gets the name of the connection pool.- Returns:
- The name of the connection pool.
-
setPoolName
Sets the name of the connection pool.- Parameters:
poolName
- The name of the connection pool.
-
getMaxPoolSize
public int getMaxPoolSize()Gets the maximum size of the connection pool.- Returns:
- The maximum size of the connection pool.
-
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) Sets the maximum size of the connection pool.- Parameters:
maxPoolSize
- The maximum pool size of the connection pool.
-
getMinIdle
public int getMinIdle()Gets the minimum number of idle connections in the connection pool.- Returns:
- The minimum number of idle connections in the connection pool.
-
setMinIdle
public void setMinIdle(int minIdle) Sets the minimum number of idle connections in the connection pool.- Parameters:
minIdle
- The minimum number of idle connections in the connection pool.
-
getMaxLifetime
public int getMaxLifetime()Gets the maximum lifetime of a connection in the connection pool.- Returns:
- The maximum lifetime of a connection in the connection pool.
-
setMaxLifetime
public void setMaxLifetime(int maxLifetime) Sets the maximum lifetime of a connection in the connection pool.- Parameters:
maxLifetime
- The maximum lifetime of a connection in the connection pool.
-
getIdleTimeout
public int getIdleTimeout()Gets the maximum time a connection is allowed to be idle.- Returns:
- The maximum time a connection is allowed to be idle.
-
setIdleTimeout
public void setIdleTimeout(int idleTimeout) Sets the maximum time a connection is allowed to be idle.- Parameters:
idleTimeout
- The maximum time a connection is allowed to be idle.
-
getConnectionTimeout
public int getConnectionTimeout()Gets the maximum amount of time to wait for a connection from the connection pool.- Returns:
- The maximum amount of time to wait for a connection from the connection pool.
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) Sets the maximum amount of time to wait for a connection from the connection pool.- Parameters:
connectionTimeout
- The maximum amount of time to wait for a connection from the connection pool.
-
getAutoCommit
public boolean getAutoCommit()Gets the auto commit value.- Returns:
- The auto commit value.
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) Sets the auto commit value.- Parameters:
autoCommit
- The auto commit value.
-