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