Class ConnectorPoolManager
- java.lang.Object
-
- org.identityconnectors.framework.impl.api.local.ConnectorPoolManager
-
public class ConnectorPoolManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectorPoolManager.ConnectorPoolKey
-
Constructor Summary
Constructors Constructor Description ConnectorPoolManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddispose(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)Disposes of all connector instances of a particular connector.static org.identityconnectors.common.Pair<ConnectorPoolManager.ConnectorPoolKey,ObjectPool<org.identityconnectors.framework.spi.PoolableConnector>>getPool(APIConfigurationImpl impl, LocalConnectorInfoImpl localInfo)Get a object pool for this connector if it supports connector pooling.static ObjectPool<org.identityconnectors.framework.spi.PoolableConnector>getPool(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)Get a object pool for this connector if it was created before.static voidshutdown()Shuts down the connector pool.
-
-
-
Method Detail
-
getPool
public static org.identityconnectors.common.Pair<ConnectorPoolManager.ConnectorPoolKey,ObjectPool<org.identityconnectors.framework.spi.PoolableConnector>> getPool(APIConfigurationImpl impl, LocalConnectorInfoImpl localInfo)
Get a object pool for this connector if it supports connector pooling.
-
getPool
public static ObjectPool<org.identityconnectors.framework.spi.PoolableConnector> getPool(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)
Get a object pool for this connector if it was created before.
-
dispose
public static void dispose(ConnectorPoolManager.ConnectorPoolKey connectorPoolKey)
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.
-
-