zhijiangW commented on a change in pull request #6698: [FLINK-8581][network] 
Move flushing remote subpartitions from OutputFlusher to netty
URL: https://github.com/apache/flink/pull/6698#discussion_r223557953
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestQueue.java
 ##########
 @@ -354,4 +404,64 @@ public void operationComplete(ChannelFuture future) 
throws Exception {
                        }
                }
        }
+
+       private static class RegisterPeriodicFlushEvent {
+               private final NetworkSequenceViewReader reader;
+               private final long flushTimeout;
+
+               public RegisterPeriodicFlushEvent(NetworkSequenceViewReader 
reader, long flushTimeout) {
+                       this.reader = checkNotNull(reader);
+                       this.flushTimeout = flushTimeout;
+               }
+
+               public NetworkSequenceViewReader getReader() {
+                       return reader;
+               }
+
+               public long getFlushTimeout() {
+                       return flushTimeout;
+               }
+       }
+
+       private static class PeriodicFlushes {
+               private final Map<Long, List<NetworkSequenceViewReader>> 
periodicFlushes = new HashMap<>();
+               private final Map<NetworkSequenceViewReader, Long> 
flushTimeouts = new HashMap<>();
+               private final Map<Long, ScheduledFuture<?>> scheduledEvents = 
new HashMap<>();
+
+               public void register(ChannelHandlerContext ctx, long 
flushTimeout, NetworkSequenceViewReader reader) {
 
 Review comment:
   remove `public` for all the methods in this inner class?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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