Class PgClientFactory
java.lang.Object
io.micronaut.configuration.vertx.pg.client.PgClientFactory
The Factory for creating Vertx Pg client.
-
Constructor Summary
ConstructorDescriptionPgClientFactory
(PgClientConfiguration connectionConfiguration, @Nullable io.vertx.reactivex.core.Vertx vertx) Create the factory with given Pg Client configuration. -
Method Summary
-
Constructor Details
-
PgClientFactory
public PgClientFactory(PgClientConfiguration connectionConfiguration, @Nullable @Nullable io.vertx.reactivex.core.Vertx vertx) Create the factory with given Pg Client configuration.- Parameters:
connectionConfiguration
- The Pg ClientOption configurationsvertx
- The vertx instance
-
-
Method Details
-
client
@Singleton @Bean(preDestroy="close") public io.vertx.reactivex.pgclient.PgPool client()- Returns:
- client A pool of connections.
-