Class AbstractNioBossPool<E extends Boss>

java.lang.Object
org.jboss.netty.channel.socket.nio.AbstractNioBossPool<E>
All Implemented Interfaces:
BossPool<E>, NioSelectorPool, ExternalResourceReleasable
Direct Known Subclasses:
NioClientBossPool, NioServerBossPool

public abstract class AbstractNioBossPool<E extends Boss> extends Object implements BossPool<E>, ExternalResourceReleasable
  • Field Details

    • INITIALIZATION_TIMEOUT

      private static final int INITIALIZATION_TIMEOUT
      The boss pool raises an exception unless all boss threads start and run within this timeout (in seconds.)
      See Also:
    • logger

      private static final InternalLogger logger
    • bosses

      private final Boss[] bosses
    • bossIndex

      private final AtomicInteger bossIndex
    • bossExecutor

      private final Executor bossExecutor
    • initialized

      private final AtomicBoolean initialized
  • Constructor Details

    • AbstractNioBossPool

      AbstractNioBossPool(Executor bossExecutor, int bossCount)
      Create a new instance
      Parameters:
      bossExecutor - the Executor to use for the Boss's
      bossCount - the count of Boss's to create
    • AbstractNioBossPool

      AbstractNioBossPool(Executor bossExecutor, int bossCount, boolean autoInit)
  • Method Details