Class KQueueEventLoopGroup.KQueueEventLoop

All Implemented Interfaces:
EventLoop, EventLoopGroup, IoEventLoop, IoEventLoopGroup, EventExecutor, EventExecutorGroup, OrderedEventExecutor, ThreadAwareExecutor, java.lang.Iterable<EventExecutor>, java.util.concurrent.Executor, java.util.concurrent.ExecutorService, java.util.concurrent.ScheduledExecutorService
Enclosing class:
KQueueEventLoopGroup

private static final class KQueueEventLoopGroup.KQueueEventLoop extends SingleThreadIoEventLoop
  • Constructor Details

    • KQueueEventLoop

      KQueueEventLoop(IoEventLoopGroup parent, java.util.concurrent.Executor executor, IoHandlerFactory ioHandlerFactory, java.util.Queue<java.lang.Runnable> taskQueue, java.util.Queue<java.lang.Runnable> tailTaskQueue, RejectedExecutionHandler rejectedExecutionHandler)
  • Method Details

    • newTaskQueue

      static java.util.Queue<java.lang.Runnable> newTaskQueue(EventLoopTaskQueueFactory queueFactory)
    • registeredChannels

      public int registeredChannels()
      Description copied from class: SingleThreadEventLoop
      Returns the number of Channels registered with this EventLoop or -1 if operation is not supported. The returned value is not guaranteed to be exact accurate and should be viewed as a best effort.
      Overrides:
      registeredChannels in class SingleThreadEventLoop
    • registeredChannelsIterator

      public java.util.Iterator<Channel> registeredChannelsIterator()
      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.