TaoZex commented on code in PR #3312:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3312#discussion_r1014792813


##########
seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/config/RabbitmqConfig.java:
##########
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.connectors.seatunnel.rabbitmq.config;
+
+import org.apache.seatunnel.common.config.TypesafeConfigUtils;
+
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+
+import com.google.common.annotations.VisibleForTesting;
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+
+@Setter
+@Getter
+@AllArgsConstructor
+public class RabbitmqConfig implements Serializable {
+    public static final String HOST = "host";
+    public static final String PORT = "port";
+    public static final String VIRTUAL_HOST = "virtual_host";
+    public static final String USERNAME = "username";
+    public static final String PASSWORD = "password";
+    public static final String URL = "url";
+    public static final String NETWORK_RECOVERY_INTERVAL = 
"network_recovery_interval";
+    public static final String AUTOMATIC_RECOVERY_ENABLED = 
"automatic_recovery_enabled";
+    public static final String TOPOLOGY_RECOVERY_ENABLED = 
"topology_recovery_enabled";
+    public static final String CONNECTION_TIMEOUT = "connection_timeout";
+    public static final String REQUESTED_CHANNEL_MAX = "requested_channel_max";
+    public static final String REQUESTED_FRAME_MAX = "requested_frame_max";
+    public static final String REQUESTED_HEARTBEAT = "requested_heartbeat";
+
+    public static final String PREFETCH_COUNT = "prefetch_count";
+    public static final String DELIVERY_TIMEOUT = "delivery_timeout";
+    public static final String QUEUE_NAME = "queue_name";
+    public static final String ROUTING_KEY = "routing_key";
+    public static final String EXCHANGE = "exchange";
+
+
+    public static final String LOG_FAILURES_ONLY = "log_failures_only";
+
+    private String host;
+    private Integer port;
+    private String virtualHost;
+    private String username;
+    private String password;
+    private String uri;
+    private Integer networkRecoveryInterval;

Review Comment:
   Int is more efficient than Integer in serialization.



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to