public class InternalThreadPool<T extends InternalThreadPool<T>> extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
InternalThreadPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
Long |
keepaliveTime()
Used to specify the amount of milliseconds that pool threads should be
kept running when idle; if not specified, threads will run until the
executor is shut down.
|
T |
keepaliveTime(Long value)
Used to specify the amount of milliseconds that pool threads should be
kept running when idle; if not specified, threads will run until the
executor is shut down.
|
Integer |
maxThreads()
The maximum thread pool size.
|
T |
maxThreads(Integer value)
The maximum thread pool size.
|
Integer |
minThreads()
The core thread pool size which is smaller than the maximum pool size.
|
T |
minThreads(Integer value)
The core thread pool size which is smaller than the maximum pool size.
|
Integer |
queueLength()
The queue length.
|
T |
queueLength(Integer value)
The queue length.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
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 String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Long keepaliveTime()
public T keepaliveTime(Long value)
public Integer maxThreads()
public Integer minThreads()
public T minThreads(Integer value)
public Integer queueLength()
Copyright © 2017 JBoss by Red Hat. All rights reserved.