public final class NettyWorkerPoolBuilder extends Object
EventLoopGroup
which can be used for sharing worker pools
with multiple Netty NettyServerBootstrapFactory
server bootstrap configurations.Constructor and Description |
---|
NettyWorkerPoolBuilder() |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.EventLoopGroup |
build()
Creates a new worker pool.
|
void |
destroy()
Shutdown the created worker pool
|
void |
setName(String name) |
void |
setNativeTransport(boolean nativeTransport) |
void |
setPattern(String pattern) |
void |
setWorkerCount(int workerCount) |
NettyWorkerPoolBuilder |
withName(String name) |
NettyWorkerPoolBuilder |
withNativeTransport(boolean nativeTransport) |
NettyWorkerPoolBuilder |
withPattern(String pattern) |
NettyWorkerPoolBuilder |
withWorkerCount(int workerCount) |
public void setName(String name)
public void setPattern(String pattern)
public void setWorkerCount(int workerCount)
public void setNativeTransport(boolean nativeTransport)
public NettyWorkerPoolBuilder withName(String name)
public NettyWorkerPoolBuilder withPattern(String pattern)
public NettyWorkerPoolBuilder withWorkerCount(int workerCount)
public NettyWorkerPoolBuilder withNativeTransport(boolean nativeTransport)
public io.netty.channel.EventLoopGroup build()
public void destroy()
Apache Camel