Class QuarkusSqlClientPool

java.lang.Object
org.hibernate.reactive.pool.impl.SqlClientPool
io.quarkus.hibernate.reactive.runtime.customized.QuarkusSqlClientPool
All Implemented Interfaces:
Serializable, org.hibernate.reactive.pool.ReactiveConnectionPool, org.hibernate.service.Service, org.hibernate.service.spi.ServiceRegistryAwareService

public class QuarkusSqlClientPool extends org.hibernate.reactive.pool.impl.SqlClientPool implements org.hibernate.service.spi.ServiceRegistryAwareService
An alternative implementation of ExternalSqlClientPool which retrieves SQL loggers / exception handlers lazily, to avoid a circular dependency JdbcEnvironment => pool => JdbcServices => JdbcEnvironment.
See Also:
  • Constructor Details

    • QuarkusSqlClientPool

      public QuarkusSqlClientPool(io.vertx.sqlclient.Pool pool)
  • Method Details

    • injectServices

      public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
      Specified by:
      injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareService
    • getPool

      protected io.vertx.sqlclient.Pool getPool()
      Specified by:
      getPool in class org.hibernate.reactive.pool.impl.SqlClientPool
    • getSqlStatementLogger

      protected org.hibernate.engine.jdbc.spi.SqlStatementLogger getSqlStatementLogger()
      Specified by:
      getSqlStatementLogger in class org.hibernate.reactive.pool.impl.SqlClientPool
    • getSqlExceptionHelper

      public org.hibernate.engine.jdbc.spi.SqlExceptionHelper getSqlExceptionHelper()
      Specified by:
      getSqlExceptionHelper in class org.hibernate.reactive.pool.impl.SqlClientPool
    • getCloseFuture

      public CompletionStage<Void> getCloseFuture()
      Specified by:
      getCloseFuture in interface org.hibernate.reactive.pool.ReactiveConnectionPool