public class NotificationConnectorPool extends 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 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(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 String _rcsid
protected static final NotificationConnectorPool.LocalPool localPool
protected final IThreadContext threadContext
public NotificationConnectorPool(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFExceptionpublic INotificationConnector[] grabMultiple(String[] orderingKeys, INotificationConnection[] notificationConnections) throws ManifoldCFException
grabMultiple in interface INotificationConnectorPoolorderingKeys - are the keys which determine in what order the connectors are obtained.notificationConnections - are the connections to use the build the connector instances.ManifoldCFExceptionpublic INotificationConnector grab(INotificationConnection notificationConnection) throws ManifoldCFException
grab in interface INotificationConnectorPoolauthorityConnection - is the notification connection to base the connector instance on.ManifoldCFExceptionpublic void releaseMultiple(INotificationConnection[] connections, INotificationConnector[] connectors) throws ManifoldCFException
releaseMultiple in interface INotificationConnectorPoolconnections - are the connections describing the instances to release.connectors - are the connector instances to release.ManifoldCFExceptionpublic void release(INotificationConnection connection, INotificationConnector connector) throws ManifoldCFException
release in interface INotificationConnectorPoolconnection - is the connection describing the instance to release.connector - is the connector to release.ManifoldCFExceptionpublic void pollAllConnectors()
throws ManifoldCFException
pollAllConnectors in interface INotificationConnectorPoolManifoldCFExceptionpublic void flushUnusedConnectors()
throws ManifoldCFException
flushUnusedConnectors in interface INotificationConnectorPoolManifoldCFExceptionpublic void closeAllConnectors()
throws ManifoldCFException
closeAllConnectors in interface INotificationConnectorPoolManifoldCFException