Class SelectedSelectionKeySetSelector

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    final class SelectedSelectionKeySetSelector
    extends java.nio.channels.Selector
    • Field Detail

      • delegate

        private final java.nio.channels.Selector delegate
    • Constructor Detail

      • SelectedSelectionKeySetSelector

        SelectedSelectionKeySetSelector​(java.nio.channels.Selector delegate,
                                        SelectedSelectionKeySet selectionKeys)
    • Method Detail

      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in class java.nio.channels.Selector
      • provider

        public java.nio.channels.spi.SelectorProvider provider()
        Specified by:
        provider in class java.nio.channels.Selector
      • keys

        public java.util.Set<java.nio.channels.SelectionKey> keys()
        Specified by:
        keys in class java.nio.channels.Selector
      • selectedKeys

        public java.util.Set<java.nio.channels.SelectionKey> selectedKeys()
        Specified by:
        selectedKeys in class java.nio.channels.Selector
      • selectNow

        public int selectNow()
                      throws java.io.IOException
        Specified by:
        selectNow in class java.nio.channels.Selector
        Throws:
        java.io.IOException
      • select

        public int select​(long timeout)
                   throws java.io.IOException
        Specified by:
        select in class java.nio.channels.Selector
        Throws:
        java.io.IOException
      • select

        public int select()
                   throws java.io.IOException
        Specified by:
        select in class java.nio.channels.Selector
        Throws:
        java.io.IOException
      • wakeup

        public java.nio.channels.Selector wakeup()
        Specified by:
        wakeup in class java.nio.channels.Selector
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.nio.channels.Selector
        Throws:
        java.io.IOException