Class NettyIoExecutors


  • public final class NettyIoExecutors
    extends java.lang.Object
    Factory methods to create IoExecutors using netty as the transport.
    • Method Detail

      • createIoExecutor

        public static IoExecutor createIoExecutor​(int ioThreads,
                                                  java.util.concurrent.ThreadFactory threadFactory)
        Creates a new IoExecutor with the specified number of ioThreads.
        Parameters:
        ioThreads - number of threads.
        threadFactory - the ThreadFactory to use. If possible you should use an instance of IoThreadFactory as it allows internal optimizations.
        Returns:
        The created IoExecutor
      • createIoExecutor

        public static IoExecutor createIoExecutor​(int ioThreads)
        Creates a new IoExecutor with the specified number of ioThreads.
        Parameters:
        ioThreads - number of threads.
        Returns:
        The created IoExecutor
      • createIoExecutor

        public static IoExecutor createIoExecutor​(java.util.concurrent.ThreadFactory threadFactory)
        Creates a new IoExecutor with the default number of ioThreads.
        Parameters:
        threadFactory - the ThreadFactory to use. If possible you should use an instance of IoThreadFactory as it allows internal optimizations.
        Returns:
        The created IoExecutor
      • createIoExecutor

        public static IoExecutor createIoExecutor()
        Creates a new IoExecutor with the default number of ioThreads.
        Returns:
        The created IoExecutor