Connection - the generic type for the pooled connectionpublic interface PoolingListener<Connection>
| Modifier and Type | Method and Description |
|---|---|
void |
onBorrow(Connection connection)
Executes after the
connection was successfully
borrowed from the pool but before it's handed over
to the requester. |
void |
onReturn(Connection connection)
Executes right before the pool accepts the
connection back. |
void onBorrow(Connection 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 connectionvoid onReturn(Connection 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 © 2016 MuleSoft, Inc.. All rights reserved.