Class AsyncDBConfig.Builder
-
- All Implemented Interfaces:
public final class AsyncDBConfig.BuilderAsync DB Config Builder
- Since:
1.0.0
Elizabeth Paige Harper https://github.com/foxcapades
-
-
Constructor Summary
Constructors Constructor Description AsyncDBConfig.Builder()
-
Method Summary
Modifier and Type Method Description final StringgetHost()Database instance hostname. final UnitsetHost(String host)Database instance hostname. final IntegergetPort()Database instance host port. final UnitsetPort(Integer port)Database instance host port. final StringgetUsername()Credentials username. final UnitsetUsername(String username)Credentials username. final StringgetPassword()Credentials password. final UnitsetPassword(String password)Credentials password. final StringgetDbName()Database name. final UnitsetDbName(String dbName)Database name. final IntegergetPoolSize()Max database connection pool size. final UnitsetPoolSize(Integer poolSize)Max database connection pool size. final AsyncDBConfig.Builderhost(String h)Sets the hostname setting for the PostgreSQL database. final AsyncDBConfig.Builderport(Integer p)Sets the port setting for the PostgreSQL database. final AsyncDBConfig.Builderusername(String u)Sets the connection credentials username. final AsyncDBConfig.Builderpassword(String p)Sets the connection credentials password. final AsyncDBConfig.BuilderdbName(String n)Sets the PostgreSQL database name. final AsyncDBConfig.BuilderpoolSize(Integer s)Sets the max pool size. final AsyncDBConfigbuild()-
-
Method Detail
-
getUsername
final String getUsername()
Credentials username.
-
setUsername
final Unit setUsername(String username)
Credentials username.
-
getPassword
final String getPassword()
Credentials password.
-
setPassword
final Unit setPassword(String password)
Credentials password.
-
getPoolSize
final Integer getPoolSize()
Max database connection pool size.
-
setPoolSize
final Unit setPoolSize(Integer poolSize)
Max database connection pool size.
-
host
final AsyncDBConfig.Builder host(String h)
Sets the hostname setting for the PostgreSQL database.
-
port
final AsyncDBConfig.Builder port(Integer p)
Sets the port setting for the PostgreSQL database.
-
username
final AsyncDBConfig.Builder username(String u)
Sets the connection credentials username.
-
password
final AsyncDBConfig.Builder password(String p)
Sets the connection credentials password.
-
dbName
final AsyncDBConfig.Builder dbName(String n)
Sets the PostgreSQL database name.
-
poolSize
final AsyncDBConfig.Builder poolSize(Integer s)
Sets the max pool size.
-
build
final AsyncDBConfig build()
-
-
-
-