Top Description Constructors Methods
io.netty.channel

public Class DefaultEventLoopGroup

extends MultithreadEventLoopGroup
Class Inheritance
Known Direct Subclasses
io.netty.channel.local.LocalEventLoopGroup
Imports
java.util.concurrent.Executor, .ThreadFactory

MultithreadEventLoopGroup which must be used for the local transport.

Constructor Summary

AccessConstructor and Description
public
DefaultEventLoopGroup()

Create a new instance with the default number of threads.

public
DefaultEventLoopGroup(int
the number of threads to use
nThreads
)

Create a new instance

public
DefaultEventLoopGroup(ThreadFactory
the ThreadFactory or null to use the default
threadFactory
)

Create a new instance with the default number of threads and the given ThreadFactory.

public
DefaultEventLoopGroup(int
the number of threads to use
nThreads
,
ThreadFactory
the ThreadFactory or null to use the default
threadFactory
)

Create a new instance

public
DefaultEventLoopGroup(int
the number of threads to use
nThreads
,
Executor
the Executor to use, or null if the default should be used.
executor
)

Create a new instance

Method Summary

Modifier and TypeMethod and Description
protected EventLoop
newChild(Executor executor, Object... args)

Implements abstract io.netty.channel.MultithreadEventLoopGroup.newChild.

Create a new EventExecutor which will later then accessible via the next() method.
Inherited from io.netty.channel.MultithreadEventLoopGroup:
newDefaultThreadFactorynextregisterregisterregister

Constructor Detail

DefaultEventLoopGroupback to summary
public DefaultEventLoopGroup()

Create a new instance with the default number of threads.

DefaultEventLoopGroupback to summary
public DefaultEventLoopGroup(int nThreads)

Create a new instance

Parameters
nThreads:int

the number of threads to use

DefaultEventLoopGroupback to summary
public DefaultEventLoopGroup(ThreadFactory threadFactory)

Create a new instance with the default number of threads and the given ThreadFactory.

Parameters
threadFactory:ThreadFactory

the ThreadFactory or null to use the default

DefaultEventLoopGroupback to summary
public DefaultEventLoopGroup(int nThreads, ThreadFactory threadFactory)

Create a new instance

Parameters
nThreads:int

the number of threads to use

threadFactory:ThreadFactory

the ThreadFactory or null to use the default

DefaultEventLoopGroupback to summary
public DefaultEventLoopGroup(int nThreads, Executor executor)

Create a new instance

Parameters
nThreads:int

the number of threads to use

executor:Executor

the Executor to use, or null if the default should be used.

Method Detail

newChildback to summary
protected EventLoop newChild(Executor executor, Object... args) throws Exception

Implements abstract io.netty.channel.MultithreadEventLoopGroup.newChild.

Doc from io.netty.util.concurrent.MultithreadEventExecutorGroup.newChild.

Create a new EventExecutor which will later then accessible via the next() method. This method will be called for each thread that will serve this MultithreadEventExecutorGroup.

Annotations
@Override