Class StreamingClientHandler


  • public class StreamingClientHandler
    extends Object
    This class handles all calls to manage the streaming ingestion client
    • Constructor Detail

      • StreamingClientHandler

        public StreamingClientHandler()
    • Method Detail

      • isClientValid

        public static boolean isClientValid​(net.snowflake.ingest.streaming.SnowflakeStreamingIngestClient client)
        Checks if a given client is valid (not null, open and has a name)
        Parameters:
        client - The client to validate
        Returns:
        If the client is valid
      • createClient

        public net.snowflake.ingest.streaming.SnowflakeStreamingIngestClient createClient​(Map<String,​String> connectorConfig)
        Creates a streaming client from the given config
        Parameters:
        connectorConfig - The config to create the client
        Returns:
        A newly created client
      • closeClient

        public void closeClient​(net.snowflake.ingest.streaming.SnowflakeStreamingIngestClient client)
        Closes the given client. Swallows any exceptions
        Parameters:
        client - The client to be closed