Package org.apache.camel.component.netty
Class NettyWorkerPoolBuilder
java.lang.Object
org.apache.camel.component.netty.NettyWorkerPoolBuilder
A builder to create Netty
EventLoopGroup which can be used for sharing worker pools with
multiple Netty NettyServerBootstrapFactory server bootstrap configurations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.EventLoopGroupbuild()Creates a new worker pool.voiddestroy()Shutdown the created worker poolvoidvoidsetNativeTransport(boolean nativeTransport) voidsetPattern(String pattern) voidsetWorkerCount(int workerCount) withNativeTransport(boolean nativeTransport) withPattern(String pattern) withWorkerCount(int workerCount)
-
Constructor Details
-
NettyWorkerPoolBuilder
public NettyWorkerPoolBuilder()
-
-
Method Details
-
setName
-
setPattern
-
setWorkerCount
public void setWorkerCount(int workerCount) -
setNativeTransport
public void setNativeTransport(boolean nativeTransport) -
withName
-
withPattern
-
withWorkerCount
-
withNativeTransport
-
build
public io.netty.channel.EventLoopGroup build()Creates a new worker pool. -
destroy
public void destroy()Shutdown the created worker pool
-