public class ConnectionTracker extends Object
Connections that come from the connection pool.
It also will invoke SQLConnectionInterceptors with information about the Connection as it is used.| Constructor and Description |
|---|
ConnectionTracker() |
ConnectionTracker(ConnectionPoolInfo connectionPoolInfo)
This allows you to have static information about the underlying connection pool.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
trackConnection(String helperName,
Callable<Connection> getConnectionCall)
Called to track the connection as it is pulled from the underlying connection pool.
|
public ConnectionTracker()
public ConnectionTracker(ConnectionPoolInfo connectionPoolInfo)
connectionPoolInfo - the static information about the connection poolpublic Connection trackConnection(String helperName, Callable<Connection> getConnectionCall)
helperName - the OfBiz helper namegetConnectionCall - a callable that returns a connectionCopyright © 2016 Atlassian. All rights reserved.