java.lang.Object
io.agroal.pool.util.ListenerHelper
- Author:
- Luis Barreiro
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfireBeforeConnectionAcquire(io.agroal.api.AgroalDataSourceListener[] listeners) static voidfireBeforeConnectionCreation(io.agroal.api.AgroalDataSourceListener[] listeners) static voidfireBeforeConnectionDestroy(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireBeforeConnectionFlush(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireBeforeConnectionLeak(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireBeforeConnectionReap(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireBeforeConnectionReturn(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireBeforeConnectionValidation(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireBeforePoolBlock(io.agroal.api.AgroalDataSourceListener[] listeners, long timeout) static voidfireOnConnectionAcquired(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionCreation(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionCreationFailure(io.agroal.api.AgroalDataSourceListener[] listeners, SQLException sqlException) static voidfireOnConnectionDestroy(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionFlush(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionInvalid(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionLeak(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionPooled(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionReap(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionReturn(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnConnectionValid(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) static voidfireOnInfo(io.agroal.api.AgroalDataSourceListener[] listeners, String message) static voidfireOnPoolInterceptor(io.agroal.api.AgroalDataSourceListener[] listeners, io.agroal.api.AgroalPoolInterceptor interceptor) static voidfireOnWarning(io.agroal.api.AgroalDataSourceListener[] listeners, String message) static voidfireOnWarning(io.agroal.api.AgroalDataSourceListener[] listeners, Throwable throwable)
-
Method Details
-
fireBeforeConnectionCreation
public static void fireBeforeConnectionCreation(io.agroal.api.AgroalDataSourceListener[] listeners) -
fireOnConnectionCreation
public static void fireOnConnectionCreation(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionCreationFailure
public static void fireOnConnectionCreationFailure(io.agroal.api.AgroalDataSourceListener[] listeners, SQLException sqlException) -
fireOnConnectionPooled
public static void fireOnConnectionPooled(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionAcquire
public static void fireBeforeConnectionAcquire(io.agroal.api.AgroalDataSourceListener[] listeners) -
fireOnConnectionAcquired
public static void fireOnConnectionAcquired(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionReturn
public static void fireBeforeConnectionReturn(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionReturn
public static void fireOnConnectionReturn(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionLeak
public static void fireBeforeConnectionLeak(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionLeak
public static void fireOnConnectionLeak(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionValidation
public static void fireBeforeConnectionValidation(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionValid
public static void fireOnConnectionValid(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionInvalid
public static void fireOnConnectionInvalid(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionFlush
public static void fireBeforeConnectionFlush(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionFlush
public static void fireOnConnectionFlush(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionReap
public static void fireBeforeConnectionReap(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionReap
public static void fireOnConnectionReap(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireBeforeConnectionDestroy
public static void fireBeforeConnectionDestroy(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnConnectionDestroy
public static void fireOnConnectionDestroy(io.agroal.api.AgroalDataSourceListener[] listeners, ConnectionHandler handler) -
fireOnPoolInterceptor
public static void fireOnPoolInterceptor(io.agroal.api.AgroalDataSourceListener[] listeners, io.agroal.api.AgroalPoolInterceptor interceptor) -
fireBeforePoolBlock
public static void fireBeforePoolBlock(io.agroal.api.AgroalDataSourceListener[] listeners, long timeout) -
fireOnWarning
public static void fireOnWarning(io.agroal.api.AgroalDataSourceListener[] listeners, String message) -
fireOnWarning
public static void fireOnWarning(io.agroal.api.AgroalDataSourceListener[] listeners, Throwable throwable) -
fireOnInfo
-