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