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
ManifoldCFExceptionpublic IMappingConnector[] grabMultiple(String[] orderingKeys, IMappingConnection[] mappingConnections) throws ManifoldCFException
grabMultiple in interface IMappingConnectorPoolorderingKeys - are the keys which determine in what order the connectors are obtained.mappingConnections - are the connections to use the build the connector instances.ManifoldCFExceptionpublic IMappingConnector grab(IMappingConnection mappingConnection) throws ManifoldCFException
grab in interface IMappingConnectorPoolmappingConnection - is the mapping connection to base the connector instance on.ManifoldCFExceptionpublic void releaseMultiple(IMappingConnection[] connections, IMappingConnector[] connectors) throws ManifoldCFException
releaseMultiple in interface IMappingConnectorPoolconnections - are the connections describing the instances to release.connectors - are the connector instances to release.ManifoldCFExceptionpublic void release(IMappingConnection connection, IMappingConnector connector) throws ManifoldCFException
release in interface IMappingConnectorPoolconnection - is the connection describing the instance to release.connector - is the connector to release.ManifoldCFExceptionpublic void pollAllConnectors()
throws ManifoldCFException
pollAllConnectors in interface IMappingConnectorPoolManifoldCFExceptionpublic void flushUnusedConnectors()
throws ManifoldCFException
flushUnusedConnectors in interface IMappingConnectorPoolManifoldCFExceptionpublic void closeAllConnectors()
throws ManifoldCFException
closeAllConnectors in interface IMappingConnectorPoolManifoldCFException