Class ConnectorPoolManager
java.lang.Object
org.identityconnectors.framework.impl.api.local.ConnectorPoolManager
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
dispose
(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey) Disposes of all connector instances of a particular connector.getPool
(APIConfigurationImpl impl, LocalConnectorInfoImpl localInfo) Get a object pool for this connector if it supports connector pooling.static ObjectPool
<PoolableConnector> getPool
(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey) Get a object pool for this connector if it was created before.static void
shutdown()
Shuts down the connector pool.
-
Constructor Details
-
ConnectorPoolManager
public ConnectorPoolManager()
-
-
Method Details
-
getPool
public static Pair<ConnectorPoolManager.ConnectorPoolKey,ObjectPool<PoolableConnector>> getPool(APIConfigurationImpl impl, LocalConnectorInfoImpl localInfo) Get a object pool for this connector if it supports connector pooling. -
getPool
public static ObjectPool<PoolableConnector> getPool(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey) Get a object pool for this connector if it was created before. -
dispose
Disposes of all connector instances of a particular connector. This cleans up the pool and marks all existing objects for disposal. Unlike shutdown, creating new connector instances will be possible after pool content disposal. This is needed, as this pool instance may still be "in circulation" and new new objects may be created due to race conditions. We do not really mind if a connector is created while the pool is disposing. But we really want to make sure that all connector instances will be disposed of immediately after they are returned to the pool. -
shutdown
public static void shutdown()Shuts down the connector pool. No more connectors will be created.
-