Class ConnectorPoolManager

java.lang.Object
org.identityconnectors.framework.impl.api.local.ConnectorPoolManager

public class ConnectorPoolManager extends Object
  • Constructor Details

    • ConnectorPoolManager

      public ConnectorPoolManager()
  • Method Details

    • getPool

      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

      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.