@Factory @Requires(classes=com.github.jasync.sql.db.postgresql.PostgreSQLConnectionBuilder.class) public class JasyncPostgreSQLClientFactory extends Object implements AutoCloseable
Constructor and Description |
---|
JasyncPostgreSQLClientFactory(JasyncPoolConfiguration jasyncPoolConfiguration)
Create the factory with given Pool configuration
|
Modifier and Type | Method and Description |
---|---|
com.github.jasync.sql.db.Connection |
client()
Create a connection pool to the database configured with the
JasyncPoolConfiguration . |
void |
close() |
public JasyncPostgreSQLClientFactory(JasyncPoolConfiguration jasyncPoolConfiguration)
jasyncPoolConfiguration
- The Reactive Postgres configurations@Singleton public com.github.jasync.sql.db.Connection client()
JasyncPoolConfiguration
.@PreDestroy public void close()
close
in interface AutoCloseable