java.lang.Object
io.helidon.dbclient.jdbc.ConnectionPool.Builder
- All Implemented Interfaces:
Builder<ConnectionPool.Builder,
,ConnectionPool> Supplier<ConnectionPool>
- Enclosing interface:
- ConnectionPool
public static final class ConnectionPool.Builder
extends Object
implements Builder<ConnectionPool.Builder,ConnectionPool>
Fluent API builder for
ConnectionPool
.
The builder will produce a connection pool based on Hikari connection pool and will support
HikariCpExtensionProvider
to enhance the Hikari pool.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Update builder from configuration.Connection pool password.properties
(Properties properties) Configure connection pool properties.Connection pool URL string.Connection pool username.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ConnectionPool.Builder,
ConnectionPool> - Returns:
- instance of the built type
-
config
Update builder from configuration.- Parameters:
config
- configuration- Returns:
- updated builder
-
url
Connection pool URL string.- Parameters:
url
- connection pool string to use- Returns:
- updated builder
-
username
Connection pool username.- Parameters:
username
- username to use- Returns:
- updated builder
-
password
Connection pool password.- Parameters:
password
- password to use- Returns:
- updated builder
-
properties
Configure connection pool properties.- Parameters:
properties
- properties to use- Returns:
- updated builder
-