< prev index next >

src/java.base/share/classes/sun/nio/ch/Poller.java

Print this page
*** 441,6 ***
--- 441,27 ---
              } catch (Exception e) {
                  throw new InternalError(e);
              }
          }
      }
+ 
+     /**
+      * Return the master poller or null if there is no master poller.
+      */
+     public static Poller masterPoller() {
+         return POLLERS.masterPoller();
+     }
+ 
+     /**
+      * Return the list of read pollers.
+      */
+     public static List<Poller> readPollers() {
+         return POLLERS.readPollers();
+     }
+ 
+     /**
+      * Return the list of write pollers.
+      */
+     public static List<Poller> writePollers() {
+         return POLLERS.writePollers();
+     }
  }
< prev index next >