public class DataSourceConfig
extends java.lang.Object
DataSource
or
Driver
implementation and a connection pool.
NOTE: the HikariCP connection pool comes with sane defaults that perform well in most deployments without additional tweaking. Every property is optional unless it is marked as required.
DataSourceConfig.Builder
Modifier and Type | Class and Description |
---|---|
static class |
DataSourceConfig.Builder
The builder for
DataSourceConfig . |
Modifier and Type | Method and Description |
---|---|
@Nullable java.lang.Boolean |
getAutoCommit()
|
@Nullable java.lang.String |
getConnectionTestQuery()
|
@Nullable java.lang.Long |
getConnectionTimeout()
|
@Nullable java.lang.String |
getDataSourceClassName()
|
@Nullable java.lang.Long |
getIdleTimeout()
|
@Nullable java.lang.String |
getJdbcUrl()
|
@Nullable java.lang.Long |
getMaxLifetime()
|
@Nullable java.lang.Integer |
getMaxPoolSize()
|
@Nullable java.lang.String |
getPassword()
|
@Nullable java.lang.String |
getPoolName()
|
@Nullable java.lang.String |
getUsername()
|
static DataSourceConfig.Builder |
newBuilder()
Creates a new builder for
DataSourceConfig . |
public static DataSourceConfig.Builder newBuilder()
DataSourceConfig
.public @Nullable java.lang.String getDataSourceClassName()
public @Nullable java.lang.String getJdbcUrl()
public @Nullable java.lang.String getUsername()
public @Nullable java.lang.String getPassword()
public @Nullable java.lang.Boolean getAutoCommit()
public @Nullable java.lang.Long getConnectionTimeout()
public @Nullable java.lang.Long getIdleTimeout()
public @Nullable java.lang.Long getMaxLifetime()
public @Nullable java.lang.String getConnectionTestQuery()
public @Nullable java.lang.Integer getMaxPoolSize()
public @Nullable java.lang.String getPoolName()