Class ThreadPerChannelEventLoopGroup

java.lang.Object
io.netty.util.concurrent.AbstractEventExecutorGroup
io.netty.channel.ThreadPerChannelEventLoopGroup
All Implemented Interfaces:
EventLoopGroup, EventExecutorGroup, java.lang.Iterable<EventExecutor>, java.util.concurrent.Executor, java.util.concurrent.ExecutorService, java.util.concurrent.ScheduledExecutorService
Direct Known Subclasses:
OioEventLoopGroup

@Deprecated public class ThreadPerChannelEventLoopGroup extends AbstractEventExecutorGroup implements EventLoopGroup
Deprecated.
this will be remove in the next-major release.
An EventLoopGroup that creates one EventLoop per Channel.
  • Field Details

    • childArgs

      private final java.lang.Object[] childArgs
      Deprecated.
    • maxChannels

      private final int maxChannels
      Deprecated.
    • executor

      final java.util.concurrent.Executor executor
      Deprecated.
    • activeChildren

      final java.util.Set<EventLoop> activeChildren
      Deprecated.
    • idleChildren

      final java.util.Queue<EventLoop> idleChildren
      Deprecated.
    • tooManyChannels

      private final ChannelException tooManyChannels
      Deprecated.
    • shuttingDown

      private volatile boolean shuttingDown
      Deprecated.
    • terminationFuture

      private final Promise<?> terminationFuture
      Deprecated.
    • childTerminationListener

      private final FutureListener<java.lang.Object> childTerminationListener
      Deprecated.
  • Constructor Details

    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup()
      Deprecated.
      Create a new ThreadPerChannelEventLoopGroup with no limit in place.
    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup(int maxChannels)
      Deprecated.
      Parameters:
      maxChannels - the maximum number of channels to handle with this instance. Once you try to register a new Channel and the maximum is exceed it will throw an ChannelException. on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit
    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup(int maxChannels, java.util.concurrent.ThreadFactory threadFactory, java.lang.Object... args)
      Deprecated.
      Parameters:
      maxChannels - the maximum number of channels to handle with this instance. Once you try to register a new Channel and the maximum is exceed it will throw an ChannelException on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit
      threadFactory - the ThreadFactory used to create new Thread instances that handle the registered Channels
      args - arguments which will passed to each newChild(Object...) call.
    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup(int maxChannels, java.util.concurrent.Executor executor, java.lang.Object... args)
      Deprecated.
      Parameters:
      maxChannels - the maximum number of channels to handle with this instance. Once you try to register a new Channel and the maximum is exceed it will throw an ChannelException on the register(Channel) and register(ChannelPromise) method. Use 0 to use no limit
      executor - the Executor used to create new Thread instances that handle the registered Channels
      args - arguments which will passed to each newChild(Object...) call.
  • Method Details