public class ManagedExecutorService<T extends ManagedExecutorService<T>> extends Object
| Constructor and Description | 
|---|
ManagedExecutorService(String key)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener 
 | 
String | 
contextService()
The name of the context service to be used by the executor. 
 | 
T | 
contextService(String value)
The name of the context service to be used by the executor. 
 | 
Integer | 
coreThreads()
The minimum number of threads to be used by the executor. 
 | 
T | 
coreThreads(Integer value)
The minimum number of threads to be used by the executor. 
 | 
String | 
getKey()  | 
Long | 
hungTaskThreshold()
The runtime, in milliseconds, for tasks to be considered hung by the
 managed executor service. 
 | 
T | 
hungTaskThreshold(Long value)
The runtime, in milliseconds, for tasks to be considered hung by the
 managed executor service. 
 | 
String | 
jndiName()
The JNDI Name to lookup the managed executor service. 
 | 
T | 
jndiName(String value)
The JNDI Name to lookup the managed executor service. 
 | 
Long | 
keepaliveTime()
When the number of threads is greater than the core, this is the maximum
 time, in milliseconds, that excess idle threads will wait for new tasks
 before terminating. 
 | 
T | 
keepaliveTime(Long value)
When the number of threads is greater than the core, this is the maximum
 time, in milliseconds, that excess idle threads will wait for new tasks
 before terminating. 
 | 
Boolean | 
longRunningTasks()
Flag which hints the duration of tasks executed by the executor. 
 | 
T | 
longRunningTasks(Boolean value)
Flag which hints the duration of tasks executed by the executor. 
 | 
Integer | 
maxThreads()
The maximum number of threads to be used by the executor. 
 | 
T | 
maxThreads(Integer value)
The maximum number of threads to be used by the executor. 
 | 
Integer | 
queueLength()
The executors task queue capacity. 
 | 
T | 
queueLength(Integer value)
The executors task queue capacity. 
 | 
RejectPolicy | 
rejectPolicy()
The policy to be applied to aborted tasks. 
 | 
T | 
rejectPolicy(RejectPolicy value)
The policy to be applied to aborted tasks. 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener 
 | 
String | 
threadFactory()
The name of the thread factory to be used by the executor. 
 | 
T | 
threadFactory(String value)
The name of the thread factory to be used by the executor. 
 | 
public ManagedExecutorService(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public String contextService()
public T contextService(String value)
public Integer coreThreads()
public T coreThreads(Integer value)
public Long hungTaskThreshold()
public T hungTaskThreshold(Long value)
public String jndiName()
public Long keepaliveTime()
public T keepaliveTime(Long value)
public Boolean longRunningTasks()
public T longRunningTasks(Boolean value)
public Integer maxThreads()
public T maxThreads(Integer value)
public Integer queueLength()
public T queueLength(Integer value)
public RejectPolicy rejectPolicy()
public T rejectPolicy(RejectPolicy value)
public String threadFactory()
Copyright © 2019 JBoss by Red Hat. All rights reserved.