public static class XnioWorker.Builder extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder(Xnio xnio)
Construct a new instance.
|
protected Builder(Xnio xnio)
xnio
- the XNIO instance (must not be null
)public Xnio getXnio()
public XnioWorker.Builder populateFromOptions(OptionMap optionMap)
public XnioWorker.Builder addBindAddressConfiguration(org.wildfly.common.net.CidrAddress cidrAddress, InetAddress bindAddress)
public XnioWorker.Builder addBindAddressConfiguration(org.wildfly.common.net.CidrAddress cidrAddress, InetSocketAddress bindAddress)
public XnioWorker.Builder setBindAddressConfigurations(org.wildfly.common.net.CidrAddressTable<InetSocketAddress> newTable)
public org.wildfly.common.net.CidrAddressTable<InetSocketAddress> getBindAddressConfigurations()
public Runnable getTerminationTask()
public XnioWorker.Builder setTerminationTask(Runnable terminationTask)
public String getWorkerName()
public XnioWorker.Builder setWorkerName(String workerName)
public int getCoreWorkerPoolSize()
public XnioWorker.Builder setCoreWorkerPoolSize(int coreWorkerPoolSize)
public int getMaxWorkerPoolSize()
public XnioWorker.Builder setMaxWorkerPoolSize(int maxWorkerPoolSize)
public ThreadGroup getThreadGroup()
public XnioWorker.Builder setThreadGroup(ThreadGroup threadGroup)
public boolean isDaemon()
public XnioWorker.Builder setDaemon(boolean daemon)
public long getWorkerKeepAlive()
public XnioWorker.Builder setWorkerKeepAlive(int workerKeepAlive)
public int getWorkerIoThreads()
public XnioWorker.Builder setWorkerIoThreads(int workerIoThreads)
public long getWorkerStackSize()
public XnioWorker.Builder setWorkerStackSize(long workerStackSize)
public ExecutorService getExternalExecutorService()
public XnioWorker.Builder setExternalExecutorService(ExecutorService executorService)
public XnioWorker build()
Copyright © 2019 JBoss by Red Hat. All rights reserved.