@Singleton @Factory public class NettyThreadFactory extends Object
NioEventLoopGroup
will use within Micronaut to
create threads.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EVENT_LOOP_THREADS
Constant with the default threads in the event loop.
|
static String |
NAME
Name for Netty thread factory.
|
Constructor and Description |
---|
NettyThreadFactory() |
Modifier and Type | Method and Description |
---|---|
protected ThreadFactory |
nettyThreadFactory()
Constructs the default thread factory used by the HTTP client.
|
public static final String NAME
public static final int DEFAULT_EVENT_LOOP_THREADS
@Singleton @Named(value="netty") protected ThreadFactory nettyThreadFactory()