- java.lang.Object
-
- io.helidon.dbclient.jdbc.ConnectionPool.Builder
-
- All Implemented Interfaces:
Builder<ConnectionPool>
,Supplier<ConnectionPool>
- Enclosing interface:
- ConnectionPool
public static final class ConnectionPool.Builder extends Object implements Builder<ConnectionPool>
Fluent API builder forConnectionPool
. The builder will produce a connection pool based on Hikari connection pool and will supportHikariCpExtensionProvider
to enhance the Hikari pool.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionPool
build()
Build the instance from this builder.ConnectionPool.Builder
config(Config config)
ConnectionPool.Builder
password(String password)
ConnectionPool.Builder
properties(Properties properties)
ConnectionPool.Builder
url(String url)
ConnectionPool.Builder
username(String username)
-
-
-
Method Detail
-
build
public ConnectionPool build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ConnectionPool>
- Returns:
- instance of the built type
-
config
public ConnectionPool.Builder config(Config config)
-
url
public ConnectionPool.Builder url(String url)
-
username
public ConnectionPool.Builder username(String username)
-
password
public ConnectionPool.Builder password(String password)
-
properties
public ConnectionPool.Builder properties(Properties properties)
-
-