Class EventLoopGroups


  • public final class EventLoopGroups
    extends Object
    Provides methods that are useful for creating an EventLoopGroup.
    • Method Detail

      • newEventLoopGroup

        public static EventLoopGroup newEventLoopGroup​(int numThreads)
        Returns a newly-created EventLoopGroup.
        Parameters:
        numThreads - the number of event loop threads
      • newEventLoopGroup

        public static EventLoopGroup newEventLoopGroup​(int numThreads,
                                                       boolean useDaemonThreads)
        Returns a newly-created EventLoopGroup.
        Parameters:
        numThreads - the number of event loop threads
        useDaemonThreads - whether to create daemon threads or not
      • newEventLoopGroup

        public static EventLoopGroup newEventLoopGroup​(int numThreads,
                                                       String threadNamePrefix)
        Returns a newly-created EventLoopGroup.
        Parameters:
        numThreads - the number of event loop threads
        threadNamePrefix - the prefix of thread names
      • newEventLoopGroup

        public static EventLoopGroup newEventLoopGroup​(int numThreads,
                                                       String threadNamePrefix,
                                                       boolean useDaemonThreads)
        Returns a newly-created EventLoopGroup.
        Parameters:
        numThreads - the number of event loop threads
        threadNamePrefix - the prefix of thread names
        useDaemonThreads - whether to create daemon threads or not
      • newEventLoopGroup

        public static EventLoopGroup newEventLoopGroup​(int numThreads,
                                                       ThreadFactory threadFactory)
        Returns a newly-created EventLoopGroup.
        Parameters:
        numThreads - the number of event loop threads
        threadFactory - the factory of event loop threads