java.lang.Object
org.xnio.XnioWorker.Builder
- Enclosing class:
- XnioWorker
A builder which allows workers to be programmatically configured.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBindAddressConfiguration
(org.wildfly.common.net.CidrAddress cidrAddress, InetAddress bindAddress) addBindAddressConfiguration
(org.wildfly.common.net.CidrAddress cidrAddress, InetSocketAddress bindAddress) build()
org.wildfly.common.net.CidrAddressTable<InetSocketAddress>
int
int
int
long
long
getXnio()
boolean
isDaemon()
populateFromOptions
(OptionMap optionMap) setBindAddressConfigurations
(org.wildfly.common.net.CidrAddressTable<InetSocketAddress> newTable) setCoreWorkerPoolSize
(int coreWorkerPoolSize) setDaemon
(boolean daemon) setExternalExecutorService
(ExecutorService executorService) setMaxWorkerPoolSize
(int maxWorkerPoolSize) setTerminationTask
(Runnable terminationTask) setThreadGroup
(ThreadGroup threadGroup) setWorkerIoThreads
(int workerIoThreads) setWorkerKeepAlive
(int workerKeepAlive) setWorkerName
(String workerName) setWorkerStackSize
(long workerStackSize)
-
Constructor Details
-
Builder
Construct a new instance.- Parameters:
xnio
- the XNIO instance (must not benull
)
-
-
Method Details
-
getXnio
-
populateFromOptions
-
addBindAddressConfiguration
public XnioWorker.Builder addBindAddressConfiguration(org.wildfly.common.net.CidrAddress cidrAddress, InetAddress bindAddress) -
addBindAddressConfiguration
public XnioWorker.Builder addBindAddressConfiguration(org.wildfly.common.net.CidrAddress cidrAddress, InetSocketAddress bindAddress) -
setBindAddressConfigurations
public XnioWorker.Builder setBindAddressConfigurations(org.wildfly.common.net.CidrAddressTable<InetSocketAddress> newTable) -
getBindAddressConfigurations
-
getTerminationTask
-
setTerminationTask
-
getWorkerName
-
setWorkerName
-
getCoreWorkerPoolSize
public int getCoreWorkerPoolSize() -
setCoreWorkerPoolSize
-
getMaxWorkerPoolSize
public int getMaxWorkerPoolSize() -
setMaxWorkerPoolSize
-
getThreadGroup
-
setThreadGroup
-
isDaemon
public boolean isDaemon() -
setDaemon
-
getWorkerKeepAlive
public long getWorkerKeepAlive() -
setWorkerKeepAlive
-
getWorkerIoThreads
public int getWorkerIoThreads() -
setWorkerIoThreads
-
getWorkerStackSize
public long getWorkerStackSize() -
setWorkerStackSize
-
getExternalExecutorService
-
setExternalExecutorService
-
build
-