Class NioWorker

    • Constructor Detail

      • NioWorker

        public NioWorker​(java.util.concurrent.Executor executor)
      • NioWorker

        public NioWorker​(java.util.concurrent.Executor executor,
                         ThreadNameDeterminer determiner)
    • Method Detail

      • read

        protected boolean read​(java.nio.channels.SelectionKey k)
        Description copied from class: AbstractNioWorker
        Read is called when a Selector has been notified that the underlying channel was something to be read. The channel would previously have registered its interest in read operations.
        Specified by:
        read in class AbstractNioWorker
        Parameters:
        k - The selection key which contains the Selector registration information.
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class AbstractNioWorker