public class Worker<T extends Worker<T>> extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 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
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic Worker(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Integer ioThreads()
public T ioThreads(Integer value)
public Long stackSize()
public T stackSize(Long value)
public Integer taskKeepalive()
public T taskKeepalive(Integer value)
public Integer taskMaxThreads()
Copyright © 2017 JBoss by Red Hat. All rights reserved.