Package io.servicetalk.transport.netty
Class NettyIoExecutors
- java.lang.Object
-
- io.servicetalk.transport.netty.NettyIoExecutors
-
public final class NettyIoExecutors extends java.lang.Object
Factory methods to createIoExecutor
s using netty as the transport.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IoExecutor
createIoExecutor()
Creates a newIoExecutor
with the default number ofioThreads
.static IoExecutor
createIoExecutor(int ioThreads)
Creates a newIoExecutor
with the specified number ofioThreads
.static IoExecutor
createIoExecutor(int ioThreads, java.util.concurrent.ThreadFactory threadFactory)
Creates a newIoExecutor
with the specified number ofioThreads
.static IoExecutor
createIoExecutor(java.util.concurrent.ThreadFactory threadFactory)
Creates a newIoExecutor
with the default number ofioThreads
.
-
-
-
Method Detail
-
createIoExecutor
public static IoExecutor createIoExecutor(int ioThreads, java.util.concurrent.ThreadFactory threadFactory)
Creates a newIoExecutor
with the specified number ofioThreads
.- Parameters:
ioThreads
- number of threads.threadFactory
- theThreadFactory
to use. If possible you should use an instance ofIoThreadFactory
as it allows internal optimizations.- Returns:
- The created
IoExecutor
-
createIoExecutor
public static IoExecutor createIoExecutor(int ioThreads)
Creates a newIoExecutor
with 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 newIoExecutor
with the default number ofioThreads
.- Parameters:
threadFactory
- theThreadFactory
to use. If possible you should use an instance ofIoThreadFactory
as it allows internal optimizations.- Returns:
- The created
IoExecutor
-
createIoExecutor
public static IoExecutor createIoExecutor()
Creates a newIoExecutor
with the default number ofioThreads
.- Returns:
- The created
IoExecutor
-
-