healchow commented on code in PR #5177:
URL: https://github.com/apache/inlong/pull/5177#discussion_r927243991
##########
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/DefaultMessageSender.java:
##########
@@ -38,12 +31,27 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ThreadFactory;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+
public class DefaultMessageSender implements MessageSender {
+
private static final Logger logger =
LoggerFactory.getLogger(DefaultMessageSender.class);
private static final long DEFAULT_SEND_TIMEOUT = 100;
private static final TimeUnit DEFAULT_SEND_TIMEUNIT =
TimeUnit.MILLISECONDS;
+ private static final ConcurrentHashMap<Integer, DefaultMessageSender>
cacheSender =
Review Comment:
Please use UPPER_CASE for static and final constants.
--
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]