Class ConnectorPoolManager


  • public class ConnectorPoolManager
    extends Object
    • Constructor Detail

      • ConnectorPoolManager

        public ConnectorPoolManager()
    • Method Detail

      • 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.