< prev index next > src/java.base/share/classes/sun/nio/ch/PollerProvider.java
Print this page
/**
* Creates a Poller for POLLOUT polling.
* @param subPoller true to create a sub-poller
*/
abstract Poller writePoller(boolean subPoller) throws IOException;
+
+ /**
+ * Returns true if read pollers support read ops in addition to POLLIN polling.
+ * @implSpec The default implementation returns false.
+ */
+ boolean supportReadOps() {
+ return false;
+ }
+
+ /**
+ * Returns true if write pollers support write ops in addition to POLLOUT polling.
+ * @implSpec The default implementation returns false.
+ */
+ boolean supportWriteOps() {
+ return false;
+ }
}
< prev index next >