| java.lang.Object org.apache.openejb.resource.AutoConnectionTracker
AutoConnectionTracker | public class AutoConnectionTracker implements ConnectionTracker(Code) | | |
Inner Class :public static class ConnectionInvocationHandler implements InvocationHandler | |
Method Summary | |
public void | handleObtained(ConnectionTrackingInterceptor interceptor, ConnectionInfo connectionInfo, boolean reassociate) Proxies new connection handles so we can detect when they have been garbage collected. | public void | handleReleased(ConnectionTrackingInterceptor interceptor, ConnectionInfo connectionInfo, ConnectionReturnAction action) Removes the released collection from the garbage collection reference tracker, since this
connection is being release via a normal close method. | public void | setEnvironment(ConnectionInfo connectionInfo, String key) Releases any managed connections held by a garbage collected connection proxy. |
handleObtained | public void handleObtained(ConnectionTrackingInterceptor interceptor, ConnectionInfo connectionInfo, boolean reassociate) throws ResourceException(Code) | | Proxies new connection handles so we can detect when they have been garbage collected.
Parameters: interceptor - the interceptor used to release the managed connection when the handled is garbage collected. Parameters: connectionInfo - the connection that was obtained Parameters: reassociate - should always be false |
handleReleased | public void handleReleased(ConnectionTrackingInterceptor interceptor, ConnectionInfo connectionInfo, ConnectionReturnAction action)(Code) | | Removes the released collection from the garbage collection reference tracker, since this
connection is being release via a normal close method.
Parameters: interceptor - ignored Parameters: connectionInfo - the connection that was released Parameters: action - ignored |
setEnvironment | public void setEnvironment(ConnectionInfo connectionInfo, String key)(Code) | | Releases any managed connections held by a garbage collected connection proxy.
Parameters: connectionInfo - the connection to be obtained Parameters: key - the unique id of the connection manager |
|
|