public final class NettyIoExecutors
extends java.lang.Object
IoExecutors using netty as the transport.| Modifier and Type | Method and Description |
|---|---|
static IoExecutor |
createIoExecutor()
Creates a new
IoExecutor with the default number of ioThreads. |
static IoExecutor |
createIoExecutor(int ioThreads)
Creates a new
IoExecutor with the specified number of ioThreads. |
static IoExecutor |
createIoExecutor(int ioThreads,
java.util.concurrent.ThreadFactory threadFactory)
Creates a new
IoExecutor with the specified number of ioThreads. |
static IoExecutor |
createIoExecutor(java.util.concurrent.ThreadFactory threadFactory)
Creates a new
IoExecutor with the default number of ioThreads. |
public static IoExecutor createIoExecutor(int ioThreads, java.util.concurrent.ThreadFactory threadFactory)
IoExecutor with the specified number of ioThreads.ioThreads - number of threads.threadFactory - the ThreadFactory to use. If possible you should use an instance
of IoThreadFactory as it allows internal optimizations.IoExecutorpublic static IoExecutor createIoExecutor(int ioThreads)
IoExecutor with the specified number of ioThreads.ioThreads - number of threads.IoExecutorpublic static IoExecutor createIoExecutor(java.util.concurrent.ThreadFactory threadFactory)
IoExecutor with the default number of ioThreads.threadFactory - the ThreadFactory to use. If possible you should use an instance
of IoThreadFactory as it allows internal optimizations.IoExecutorpublic static IoExecutor createIoExecutor()
IoExecutor with the default number of ioThreads.IoExecutor