org.apache.camel.component.netty
Class NettyWorkerPoolBuilder
java.lang.Object
org.apache.camel.component.netty.NettyWorkerPoolBuilder
public final class NettyWorkerPoolBuilder
- extends Object
A builder to create Netty WorkerPool
which can be used for sharing worker pools
with multiple Netty NettyServerBootstrapFactory
server bootstrap configurations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NettyWorkerPoolBuilder
public NettyWorkerPoolBuilder()
setName
public void setName(String name)
setPattern
public void setPattern(String pattern)
setWorkerCount
public void setWorkerCount(int workerCount)
withName
public NettyWorkerPoolBuilder withName(String name)
withPattern
public NettyWorkerPoolBuilder withPattern(String pattern)
withWorkerCount
public NettyWorkerPoolBuilder withWorkerCount(int workerCount)
destroy
public void destroy()
- Shutdown the created worker pool
Apache Camel