C - the generic type for the pooled connectionpublic interface PoolingListener<C>
| Modifier and Type | Method and Description |
|---|---|
default void |
onBorrow(C connection)
Executes after the
connection was successfully
borrowed from the pool but before it's handed over
to the requester. |
default void |
onReturn(C connection)
Executes right before the pool accepts the
connection back. |
default void onBorrow(C connection)
connection was successfully
borrowed from the pool but before it's handed over
to the requester.
This method can alter the state of the connection
as long as it remains on a usable state.
connection - the pooled connectiondefault void onReturn(C connection)
connection back.
If this method throws exception, then the pool will invalidate the
connection. On the other hand, a successful execution of this
method does not imply that the pool will successful accept the connection
back. The pool is still free to invalidate the connection anyway.
This method can alter the state of the connection
as long as it remains on a usable state.
connection - the pooled connectionCopyright © 2017 MuleSoft, Inc.. All rights reserved.