public class MappingConnectorPool extends Object implements IMappingConnectorPool
Modifier and Type | Class and Description |
---|---|
protected static class |
MappingConnectorPool.LocalPool
Actual static mapping connector pool
|
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected static MappingConnectorPool.LocalPool |
localPool
Local connector pool
|
protected IThreadContext |
threadContext
Thread context
|
Constructor and Description |
---|
MappingConnectorPool(IThreadContext threadContext)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeAllConnectors()
Clean up all open mapping connector handles.
|
void |
flushUnusedConnectors()
Flush only those connector handles that are currently unused.
|
IMappingConnector |
grab(IMappingConnection mappingConnection)
Get a mapping connector.
|
IMappingConnector[] |
grabMultiple(String[] orderingKeys,
IMappingConnection[] mappingConnections)
Get multiple mapping connectors, all at once.
|
void |
pollAllConnectors()
Idle notification for inactive mapping connector handles.
|
void |
release(IMappingConnection connection,
IMappingConnector connector)
Release a mapping connector.
|
void |
releaseMultiple(IMappingConnection[] connections,
IMappingConnector[] connectors)
Release multiple mapping connectors.
|
public static final String _rcsid
protected static final MappingConnectorPool.LocalPool localPool
protected final IThreadContext threadContext
public MappingConnectorPool(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFException
public IMappingConnector[] grabMultiple(String[] orderingKeys, IMappingConnection[] mappingConnections) throws ManifoldCFException
grabMultiple
in interface IMappingConnectorPool
orderingKeys
- are the keys which determine in what order the connectors are obtained.mappingConnections
- are the connections to use the build the connector instances.ManifoldCFException
public IMappingConnector grab(IMappingConnection mappingConnection) throws ManifoldCFException
grab
in interface IMappingConnectorPool
mappingConnection
- is the mapping connection to base the connector instance on.ManifoldCFException
public void releaseMultiple(IMappingConnection[] connections, IMappingConnector[] connectors) throws ManifoldCFException
releaseMultiple
in interface IMappingConnectorPool
connections
- are the connections describing the instances to release.connectors
- are the connector instances to release.ManifoldCFException
public void release(IMappingConnection connection, IMappingConnector connector) throws ManifoldCFException
release
in interface IMappingConnectorPool
connection
- is the connection describing the instance to release.connector
- is the connector to release.ManifoldCFException
public void pollAllConnectors() throws ManifoldCFException
pollAllConnectors
in interface IMappingConnectorPool
ManifoldCFException
public void flushUnusedConnectors() throws ManifoldCFException
flushUnusedConnectors
in interface IMappingConnectorPool
ManifoldCFException
public void closeAllConnectors() throws ManifoldCFException
closeAllConnectors
in interface IMappingConnectorPool
ManifoldCFException