Package io.servicetalk.transport.netty
Class NettyIoExecutors
- java.lang.Object
-
- io.servicetalk.transport.netty.NettyIoExecutors
-
public final class NettyIoExecutors extends java.lang.ObjectFactory methods to createIoExecutors using netty as the transport.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IoExecutorcreateIoExecutor()Creates a newIoExecutorwith the default number ofioThreads.static IoExecutorcreateIoExecutor(int ioThreads)Creates a newIoExecutorwith the specified number ofioThreads.static IoExecutorcreateIoExecutor(int ioThreads, java.util.concurrent.ThreadFactory threadFactory)Creates a newIoExecutorwith the specified number ofioThreads.static IoExecutorcreateIoExecutor(java.util.concurrent.ThreadFactory threadFactory)Creates a newIoExecutorwith the default number ofioThreads.
-
-
-
Method Detail
-
createIoExecutor
public static IoExecutor createIoExecutor(int ioThreads, java.util.concurrent.ThreadFactory threadFactory)
Creates a newIoExecutorwith the specified number ofioThreads.- Parameters:
ioThreads- number of threads.threadFactory- theThreadFactoryto use. If possible you should use an instance ofIoThreadFactoryas it allows internal optimizations.- Returns:
- The created
IoExecutor
-
createIoExecutor
public static IoExecutor createIoExecutor(int ioThreads)
Creates a newIoExecutorwith the specified number ofioThreads.- Parameters:
ioThreads- number of threads.- Returns:
- The created
IoExecutor
-
createIoExecutor
public static IoExecutor createIoExecutor(java.util.concurrent.ThreadFactory threadFactory)
Creates a newIoExecutorwith the default number ofioThreads.- Parameters:
threadFactory- theThreadFactoryto use. If possible you should use an instance ofIoThreadFactoryas it allows internal optimizations.- Returns:
- The created
IoExecutor
-
createIoExecutor
public static IoExecutor createIoExecutor()
Creates a newIoExecutorwith the default number ofioThreads.- Returns:
- The created
IoExecutor
-
-