public interface AgroalDataSourceListener
Modifier and Type | Method and Description |
---|---|
default void |
beforeConnectionAcquire()
This callback is invoked whenever an application tries to obtain a connection.
|
default void |
beforeConnectionCreation()
This callback is invoked whenever a new connection is about to be created.
|
default void |
beforeConnectionDestroy(Connection connection)
This callback is invoked whenever a connection is about to be destroyed.
|
default void |
beforeConnectionFlush(Connection connection)
This callback is invoked when a connection is about to be flush.
|
default void |
beforeConnectionLeak(Connection connection)
This callback is invoked before checking the leak timeout of a connection.
|
default void |
beforeConnectionReap(Connection connection)
This callback is invoked before checking the idle timeout of a connection.
|
default void |
beforeConnectionReturn(Connection connection)
This callback is invoked before a connection is returned to the pool.
|
default void |
beforeConnectionValidation(Connection connection)
This callback is invoked when a connection is about to be checked.
|
default void |
onConnectionAcquire(Connection connection)
This callback is invoked when a connection is successfully acquired.
|
default void |
onConnectionCreation(Connection connection)
This callback is invoked for every new connection.
|
default void |
onConnectionDestroy(Connection connection)
This callback is invoked after a connection is closed.
|
default void |
onConnectionFlush(Connection connection)
This callback is invoked when after a connection is removed from the pool.
|
default void |
onConnectionInvalid(Connection connection)
This callback is invoked when a connection was checked and is invalid.
|
default void |
onConnectionLeak(Connection connection,
Thread thread)
This connection is invoked when a connection is held for longer than the leak timeout and reports what thread acquired it.
|
default void |
onConnectionPooled(Connection connection)
This callback is invoked right after a connection is added to the pool.
|
default void |
onConnectionReap(Connection connection)
This callback is invoked if a connection is idle in the pool.
|
default void |
onConnectionReturn(Connection connection)
This callback is invoked right after a connection is returned to the pool.
|
default void |
onConnectionValid(Connection connection)
This callback is invoked when a connection was checked and is valid.
|
default void |
onInfo(String message)
Callback to allow reporting information of interest, for which a warning might be considered excessive.
|
default void |
onWarning(String message)
This callback is invoked to report anomalous circumstances that do not prevent the pool from functioning.
|
default void |
onWarning(Throwable throwable)
This callback is invoked to report anomalous circumstances that do not prevent the pool from functioning.
|
default void beforeConnectionCreation()
default void onConnectionCreation(Connection connection)
default void onConnectionPooled(Connection connection)
default void beforeConnectionAcquire()
default void onConnectionAcquire(Connection connection)
default void beforeConnectionReturn(Connection connection)
default void onConnectionReturn(Connection connection)
default void beforeConnectionLeak(Connection connection)
default void onConnectionLeak(Connection connection, Thread thread)
default void beforeConnectionValidation(Connection connection)
default void onConnectionValid(Connection connection)
default void onConnectionInvalid(Connection connection)
default void beforeConnectionFlush(Connection connection)
default void onConnectionFlush(Connection connection)
default void beforeConnectionReap(Connection connection)
default void onConnectionReap(Connection connection)
default void beforeConnectionDestroy(Connection connection)
default void onConnectionDestroy(Connection connection)
default void onWarning(String message)
default void onWarning(Throwable throwable)
default void onInfo(String message)
Copyright © 2021 JBoss by Red Hat. All rights reserved.