Class ConnectionTracker
java.lang.Object
org.ofbiz.core.entity.jdbc.interceptors.connection.ConnectionTracker
A class to track information about
Connections that come from the connection pool.
It also will invoke SQLConnectionInterceptors with information about the Connection as it is used.-
Constructor Summary
ConstructorsConstructorDescriptionConnectionTracker(ConnectionPoolInfo connectionPoolInfo) This allows you to have static information about the underlying connection pool. -
Method Summary
Modifier and TypeMethodDescriptiontrackConnection(String helperName, Callable<Connection> getConnectionCall) Called to track the connection as it is pulled from the underlying connection pool.
-
Constructor Details
-
ConnectionTracker
public ConnectionTracker() -
ConnectionTracker
This allows you to have static information about the underlying connection pool.- Parameters:
connectionPoolInfo- the static information about the connection pool
-
-
Method Details
-
trackConnection
Called to track the connection as it is pulled from the underlying connection pool.- Parameters:
helperName- the OfBiz helper namegetConnectionCall- a callable that returns a connection- Returns:
- the connection that was returned by the callable
-