Class DatabricksDriverFeatureFlagsContextFactory


  • public class DatabricksDriverFeatureFlagsContextFactory
    extends Object
    Factory class to manage DatabricksDriverFeatureFlagsContext instances
    • Method Detail

      • getInstance

        public static DatabricksDriverFeatureFlagsContext getInstance​(IDatabricksConnectionContext context)
        Gets or creates a DatabricksDriverFeatureFlagsContext instance for the given compute. Multiple calls with the same connection UUID are idempotent — only one reference is tracked per connection.
        Parameters:
        context - the connection context
        Returns:
        the DatabricksDriverFeatureFlagsContext instance
      • removeInstance

        public static void removeInstance​(IDatabricksConnectionContext connectionContext)
        Removes the reference for the given connection context. When the last connection for a host is removed, the context is shut down. If the removed connection was the one whose context was stored internally, the stored context is updated to another active connection to prevent HTTP client leaks.
        Parameters:
        connectionContext - the connection context