public class LocalEventLoopGroup extends MultithreadEventLoopGroup
MultithreadEventLoopGroup which must be used for the local transport.| 构造器和说明 |
|---|
LocalEventLoopGroup()
Create a new instance with the default number of threads.
|
LocalEventLoopGroup(int nThreads)
Create a new instance
|
LocalEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory)
Create a new instance
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected EventExecutor |
newChild(java.util.concurrent.ThreadFactory threadFactory,
java.lang.Object... args)
Create a new EventExecutor which will later then accessible via the
MultithreadEventExecutorGroup.next() method. |
newDefaultThreadFactory, next, register, registerawaitTermination, children, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFutureexecute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuturepublic LocalEventLoopGroup()
public LocalEventLoopGroup(int nThreads)
nThreads - the number of threads to usepublic LocalEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory)
nThreads - the number of threads to usethreadFactory - the ThreadFactory or null to use the defaultprotected EventExecutor newChild(java.util.concurrent.ThreadFactory threadFactory, java.lang.Object... args) throws java.lang.Exception
MultithreadEventExecutorGroupMultithreadEventExecutorGroup.next() method. This method will be
called for each thread that will serve this MultithreadEventExecutorGroup.newChild 在类中 MultithreadEventExecutorGroupjava.lang.Exception