zhijiangW commented on a change in pull request #9717: [FLINK-14044] [runtime] 
Reducing synchronization in AsyncWaitOperator
URL: https://github.com/apache/flink/pull/9717#discussion_r328064864
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/queue/WatermarkQueueEntry.java
 ##########
 @@ -19,31 +19,44 @@
 package org.apache.flink.streaming.api.operators.async.queue;
 
 import org.apache.flink.annotation.Internal;
+import org.apache.flink.streaming.api.operators.TimestampedCollector;
 import org.apache.flink.streaming.api.watermark.Watermark;
+import org.apache.flink.util.Preconditions;
 
-import java.util.concurrent.CompletableFuture;
+import javax.annotation.Nonnull;
+
+import java.util.Collection;
 
 /**
  * {@link StreamElementQueueEntry} implementation for the {@link Watermark}.
  */
 @Internal
-public class WatermarkQueueEntry extends StreamElementQueueEntry<Watermark> 
implements AsyncWatermarkResult {
+class WatermarkQueueEntry<OUT> implements StreamElementQueueEntry<OUT> {
+       @Nonnull
+       private final Watermark watermark;
 
-       private final CompletableFuture<Watermark> future;
+       WatermarkQueueEntry(@Nonnull Watermark watermark) {
 
 Review comment:
   ditto: `@Nonnull` issue.
   I guess it is the common sense for `Nonnull`. Then it is only necessary to 
tag it if `Nullable`?

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


With regards,
Apache Git Services

Reply via email to