Class NioEventLoop

    • Method Detail

      • selectorProvider

        public java.nio.channels.spi.SelectorProvider selectorProvider()
        Deprecated.
        Returns the SelectorProvider used by this NioEventLoop to obtain the Selector.
      • newTaskQueue

        protected java.util.Queue<java.lang.Runnable> newTaskQueue​(int maxPendingTasks)
        Deprecated.
        Description copied from class: SingleThreadEventExecutor
        Create a new Queue which will holds the tasks to execute. This default implementation will return a LinkedBlockingQueue but if your sub-class of SingleThreadEventExecutor will not do any blocking calls on the this Queue it may make sense to @Override this and return some more performant implementation that does not support blocking operations at all.
        Overrides:
        newTaskQueue in class SingleThreadEventExecutor
      • register

        public void register​(java.nio.channels.SelectableChannel ch,
                             int interestOps,
                             NioTask<?> task)
        Deprecated.
        Registers an arbitrary SelectableChannel, not necessarily created by Netty, to the Selector of this event loop. Once the specified SelectableChannel is registered, the specified task will be executed by this event loop when the SelectableChannel is ready.
      • getIoRatio

        public int getIoRatio()
        Deprecated.
        Always return 0.
      • setIoRatio

        @Deprecated
        public void setIoRatio​(int ioRatio)
        Deprecated.
        This method is a no-op.
      • rebuildSelector

        public void rebuildSelector()
        Deprecated.
        Replaces the current Selector of this event loop with newly created Selectors to work around the infamous epoll 100% CPU bug.
      • registeredChannelsIterator

        public java.util.Iterator<Channel> registeredChannelsIterator()
        Deprecated.
        Overrides:
        registeredChannelsIterator in class SingleThreadEventLoop
        Returns:
        read-only iterator of active Channels registered with this EventLoop. The returned value is not guaranteed to be exact accurate and should be viewed as a best effort. This method is expected to be called from within event loop.