public interface AgroalDataSource extends AutoCloseable, DataSource, Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
AgroalDataSource.FlushMode
Modes supported on the flush operation.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush(AgroalDataSource.FlushMode mode)
Performs a flush action on the connections of the pool.
|
static AgroalDataSource |
from(AgroalDataSourceConfiguration configuration,
AgroalDataSourceListener... listeners)
Create an AgroalDataSource from configuration.
|
static AgroalDataSource |
from(Supplier<AgroalDataSourceConfiguration> configurationSupplier,
AgroalDataSourceListener... listeners)
Create an AgroalDataSource from a supplier of the configuration.
|
AgroalDataSourceConfiguration |
getConfiguration()
Allows inspection of the configuration.
|
AgroalDataSourceMetrics |
getMetrics()
Allows access to metrics.
|
List<AgroalPoolInterceptor> |
getPoolInterceptors()
Get the list of pool interceptors.
|
void |
setPoolInterceptors(Collection<? extends AgroalPoolInterceptor> interceptors)
Sets pool interceptors.
|
getConnection, getConnection
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
isWrapperFor, unwrap
static AgroalDataSource from(Supplier<AgroalDataSourceConfiguration> configurationSupplier, AgroalDataSourceListener... listeners) throws SQLException
SQLException
static AgroalDataSource from(AgroalDataSourceConfiguration configuration, AgroalDataSourceListener... listeners) throws SQLException
SQLException
AgroalDataSourceConfiguration getConfiguration()
AgroalDataSourceMetrics getMetrics()
void flush(AgroalDataSource.FlushMode mode)
void setPoolInterceptors(Collection<? extends AgroalPoolInterceptor> interceptors)
List<AgroalPoolInterceptor> getPoolInterceptors()
void close()
close
in interface AutoCloseable
Copyright © 2021 JBoss by Red Hat. All rights reserved.