pnowojski commented on a change in pull request #9905: [FLINK-14396][network] 
Implement rudimentary non-blocking network output
URL: https://github.com/apache/flink/pull/9905#discussion_r334918413
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/AvailabilityProvider.java
 ##########
 @@ -53,4 +53,43 @@
         * the input is finished.
         */
        CompletableFuture<?> isAvailable();
+
+       /**
+        * A default implementation for providing the helpful functions of 
resetting the
+        * available/unavailable states.
+        */
+       abstract class AbstractAvailabilityProvider implements 
AvailabilityProvider {
+
+               protected CompletableFuture<?> isAvailable = new 
CompletableFuture<>();
+
+               /**
+                * Judges to reset the current available state as unavailable.
+                */
+               protected void resetUnAvailable() {
 
 Review comment:
   nit: `resetUnAvailable()` -> `resetUnavailable()`

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to