westphal-jan commented on a change in pull request #15140:
URL: https://github.com/apache/flink/pull/15140#discussion_r595936150



##########
File path: 
flink-connectors/flink-connector-rabbitmq2/src/main/java/org/apache/flink/connector/rabbitmq2/sink/common/RabbitMQSinkConnection.java
##########
@@ -0,0 +1,134 @@
+package org.apache.flink.connector.rabbitmq2.sink.common;
+
+import org.apache.flink.connector.rabbitmq2.common.RabbitMQConnectionConfig;
+import org.apache.flink.util.Preconditions;
+
+import com.rabbitmq.client.Channel;
+import com.rabbitmq.client.Connection;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.annotation.Nullable;
+
+import java.io.IOException;
+
+/**
+ * This class provides basic RabbitMQ functionality and common behaviour such 
as establishing and
+ * closing a connection via the {@code connectionConfig}. In addition, it 
provides methods for
+ * serializing and sending messages to RabbitMQ (with or without publish 
options).
+ *
+ * @param <T> The type of the messages that are published.
+ */
+public class RabbitMQSinkConnection<T> {

Review comment:
       Done.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to