Class StreamingClientHandler
- java.lang.Object
-
- com.snowflake.kafka.connector.internal.streaming.StreamingClientHandler
-
public class StreamingClientHandler extends Object
This class handles all calls to manage the streaming ingestion client
-
-
Constructor Summary
Constructors Constructor Description StreamingClientHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseClient(net.snowflake.ingest.streaming.SnowflakeStreamingIngestClient client)Closes the given client.net.snowflake.ingest.streaming.SnowflakeStreamingIngestClientcreateClient(Map<String,String> connectorConfig)Creates a streaming client from the given configstatic booleanisClientValid(net.snowflake.ingest.streaming.SnowflakeStreamingIngestClient client)Checks if a given client is valid (not null, open and has a name)
-
-
-
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
-
-