Class JasyncPostgreSQLClientFactory
java.lang.Object
io.micronaut.configuration.jasync.JasyncPostgreSQLClientFactory
- All Implemented Interfaces:
- AutoCloseable
@Factory
@Requires(classes=com.github.jasync.sql.db.postgresql.PostgreSQLConnectionBuilder.class)
public class JasyncPostgreSQLClientFactory
extends Object
implements AutoCloseable
The Factory for creating Reactive Postgres client.
- 
Constructor SummaryConstructorsConstructorDescriptionJasyncPostgreSQLClientFactory(JasyncPoolConfiguration jasyncPoolConfiguration) Create the factory with given Pool configuration.
- 
Method SummaryModifier and TypeMethodDescriptioncom.github.jasync.sql.db.Connectionclient()Create a connection pool to the database configured with theJasyncPoolConfiguration.voidclose()
- 
Constructor Details- 
JasyncPostgreSQLClientFactoryCreate the factory with given Pool configuration.- Parameters:
- jasyncPoolConfiguration- The Reactive Postgres configurations
 
 
- 
- 
Method Details- 
client@Singleton public com.github.jasync.sql.db.Connection client()Create a connection pool to the database configured with theJasyncPoolConfiguration.- Returns:
- client A pool of connections.
 
- 
close@PreDestroy public void close()- Specified by:
- closein interface- AutoCloseable
 
 
-