public static class NuxeoContainer.ConnectionManagerWrapper extends Object implements javax.resource.spi.ConnectionManager
reset()
method to flush the pool.Modifier and Type | Field and Description |
---|---|
protected NuxeoConnectionManager |
cm |
protected NuxeoConnectionManagerConfiguration |
config |
protected NuxeoConnectionTrackingCoordinator |
coordinator |
Constructor and Description |
---|
ConnectionManagerWrapper(NuxeoConnectionTrackingCoordinator coordinator,
NuxeoConnectionManager cm,
NuxeoConnectionManagerConfiguration config) |
Modifier and Type | Method and Description |
---|---|
Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) |
void |
dispose() |
NuxeoConnectionManagerConfiguration |
getConfiguration() |
NuxeoConnectionManager |
getManager() |
List<org.nuxeo.runtime.jtajca.NuxeoConnectionManager.ActiveMonitor.TimeToLive> |
killActiveTimedoutConnections(long clock) |
void |
reset() |
protected NuxeoConnectionTrackingCoordinator coordinator
protected volatile NuxeoConnectionManager cm
protected final NuxeoConnectionManagerConfiguration config
public ConnectionManagerWrapper(NuxeoConnectionTrackingCoordinator coordinator, NuxeoConnectionManager cm, NuxeoConnectionManagerConfiguration config)
public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
allocateConnection
in interface javax.resource.spi.ConnectionManager
javax.resource.ResourceException
public void reset()
public List<org.nuxeo.runtime.jtajca.NuxeoConnectionManager.ActiveMonitor.TimeToLive> killActiveTimedoutConnections(long clock)
public void dispose()
public NuxeoConnectionManagerConfiguration getConfiguration()
public NuxeoConnectionManager getManager()
Copyright © 2018 Nuxeo. All rights reserved.