Class NettyIoExecutors

java.lang.Object
io.servicetalk.transport.netty.NettyIoExecutors

public final class NettyIoExecutors extends Object
Factory methods to create IoExecutors using Netty as the transport.
  • Method Details

    • createIoExecutor

      public static <T extends Thread & IoThreadFactory.IoThread> IoExecutor createIoExecutor(int ioThreads, IoThreadFactory<T> threadFactory)
      Creates a new IoExecutor with the specified number of ioThreads.
      Type Parameters:
      T - Type of the IO thread instances created by factory.
      Parameters:
      ioThreads - number of threads or 0 (zero) to use the default value.
      threadFactory - the IoThreadFactory to use.
      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 or 0 (zero) to use the default value.
      Returns:
      The created IoExecutor
    • createIoExecutor

      public static <T extends Thread & IoThreadFactory.IoThread> IoExecutor createIoExecutor(IoThreadFactory<T> threadFactory)
      Creates a new IoExecutor with the default number of ioThreads.
      Type Parameters:
      T - Type of threads created by IoThreadFactory
      Parameters:
      threadFactory - the IoThreadFactory to use.
      Returns:
      The created IoExecutor
    • createIoExecutor

      public static IoExecutor createIoExecutor(String threadNamePrefix)
      Creates a new IoExecutor with the default number of ioThreads.
      Parameters:
      threadNamePrefix - the name prefix used for the created Threads.
      Returns:
      The created IoExecutor
    • createIoExecutor

      public static IoExecutor createIoExecutor(int ioThreads, String threadNamePrefix)
      Creates a new IoExecutor with the specified number of ioThreads.
      Parameters:
      ioThreads - number of threads or 0 (zero) to use the default value.
      threadNamePrefix - the name prefix used for the created Threads.
      Returns:
      The created IoExecutor
    • createIoExecutor

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