Interface ReactiveConnectionPool

All Superinterfaces:
Serializable, org.hibernate.service.Service
All Known Implementing Classes:
DefaultSqlClientPool, ExternalSqlClientPool, SqlClientPool

@Incubating public interface ReactiveConnectionPool extends org.hibernate.service.Service
A Hibernate Service that provides access to pooled reactive connections.

A custom implementation of ReactiveConnectionPool may be selected by setting the configuration property Settings.SQL_CLIENT_POOL.

Alternatively, a program may integrate a custom ReactiveConnectionPool by contributing a new service using a StandardServiceInitiator or from code-based Hibernate configuration by calling StandardServiceRegistryBuilder.addService(java.lang.Class<T>, T).

 new ReactiveServiceRegistryBuilder()
     .applySettings( properties )
     .addService( ReactiveConnectionPool.class, new MyReactiveConnectionPool() )
     .build();
 
  • Method Details