public class AutoConnectionTracker extends Object implements org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTracker
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoConnectionTracker.ConnectionInvocationHandler |
| Constructor and Description |
|---|
AutoConnectionTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleObtained(org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor interceptor,
org.apache.geronimo.connector.outbound.ConnectionInfo connectionInfo,
boolean reassociate)
Proxies new connection handles so we can detect when they have been garbage collected.
|
void |
handleReleased(org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor interceptor,
org.apache.geronimo.connector.outbound.ConnectionInfo connectionInfo,
org.apache.geronimo.connector.outbound.ConnectionReturnAction action)
Removes the released collection from the garbage collection reference tracker, since this
connection is being release via a normal close method.
|
void |
setEnvironment(org.apache.geronimo.connector.outbound.ConnectionInfo connectionInfo,
String key)
Releases any managed connections held by a garbage collected connection proxy.
|
public void setEnvironment(org.apache.geronimo.connector.outbound.ConnectionInfo connectionInfo,
String key)
setEnvironment in interface org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackerconnectionInfo - the connection to be obtainedkey - the unique id of the connection managerpublic void handleObtained(org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor interceptor,
org.apache.geronimo.connector.outbound.ConnectionInfo connectionInfo,
boolean reassociate)
throws javax.resource.ResourceException
handleObtained in interface org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackerinterceptor - the interceptor used to release the managed connection when the handled is garbage collected.connectionInfo - the connection that was obtainedreassociate - should always be falsejavax.resource.ResourceExceptionpublic void handleReleased(org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor interceptor,
org.apache.geronimo.connector.outbound.ConnectionInfo connectionInfo,
org.apache.geronimo.connector.outbound.ConnectionReturnAction action)
handleReleased in interface org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackerinterceptor - ignoredconnectionInfo - the connection that was releasedaction - ignoredCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.