Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
Integer |
ioThreads()
"Specify the number of I/O threads to create for the worker.
|
T |
ioThreads(Integer value)
"Specify the number of I/O threads to create for the worker.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Long |
stackSize()
The stack size (in bytes) to attempt to use for worker threads.
|
T |
stackSize(Long value)
The stack size (in bytes) to attempt to use for worker threads.
|
Integer |
taskKeepalive()
Specify the number of milliseconds to keep non-core task threads alive.
|
T |
taskKeepalive(Integer value)
Specify the number of milliseconds to keep non-core task threads alive.
|
Integer |
taskMaxThreads()
"Specify the maximum number of threads for the worker task thread pool.If not set, default value used which is calculated by formula cpuCount * 16"
|
T |
taskMaxThreads(Integer value)
"Specify the maximum number of threads for the worker task thread pool.If not set, default value used which is calculated by formula cpuCount * 16"
|
public Worker(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="io-threads") public Integer ioThreads()
public T ioThreads(Integer value)
@ModelNodeBinding(detypedName="stack-size") public Long stackSize()
public T stackSize(Long value)
@ModelNodeBinding(detypedName="task-keepalive") public Integer taskKeepalive()
public T taskKeepalive(Integer value)
@ModelNodeBinding(detypedName="task-max-threads") public Integer taskMaxThreads()
Copyright © 2016 JBoss by Red Hat. All rights reserved.