public interface AgroalPoolInterceptor
These differ from the Listener in a few different ways: They do not have access to the raw Connection The invoke order is dependent on the operation (incoming / outgoing) Consistent with the transaction.
Modifier and Type | Field and Description |
---|---|
static Comparator<AgroalPoolInterceptor> |
DEFAULT_COMPARATOR
Uses interceptor priority, followed by
Class.getName() to ensure a consistent ordering. |
Modifier and Type | Method and Description |
---|---|
default int |
getPriority()
Allows a ordering between multiple interceptors.
|
default void |
onConnectionAcquire(Connection connection)
This callback is invoked when a connection is successfully acquired.
|
default void |
onConnectionReturn(Connection connection)
This callback is invoked before a connection is returned to the pool.
|
static final Comparator<AgroalPoolInterceptor> DEFAULT_COMPARATOR
Class.getName()
to ensure a consistent ordering.default void onConnectionAcquire(Connection connection)
default void onConnectionReturn(Connection connection)
default int getPriority()
Copyright © 2020 JBoss by Red Hat. All rights reserved.