@Address(value="/subsystem=ee/managed-scheduled-executor-service=*") public class ManagedScheduledExecutorService<T extends ManagedScheduledExecutorService<T>> extends HashMap implements Keyed
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ManagedScheduledExecutorService(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 scheduled executor.
|
T |
contextService(String value)
The name of the context service to be used by the scheduled executor.
|
Integer |
coreThreads()
The minimum number of threads to be used by the scheduled executor.
|
T |
coreThreads(Integer value)
The minimum number of threads to be used by the scheduled executor.
|
String |
getKey() |
Long |
hungTaskThreshold()
The runtime, in milliseconds, for tasks to be considered hung by the
scheduled executor.
|
T |
hungTaskThreshold(Long value)
The runtime, in milliseconds, for tasks to be considered hung by the
scheduled executor.
|
String |
jndiName()
The JNDI Name to lookup the managed scheduled executor service.
|
T |
jndiName(String value)
The JNDI Name to lookup the managed scheduled 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 scheduled
executor.
|
T |
longRunningTasks(Boolean value)
Flag which hints the duration of tasks executed by the scheduled
executor.
|
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 scheduled executor.
|
T |
threadFactory(String value)
The name of the thread factory to be used by the scheduled executor.
|
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 ManagedScheduledExecutorService(String key)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="context-service") public String contextService()
public T contextService(String value)
@ModelNodeBinding(detypedName="core-threads") public Integer coreThreads()
public T coreThreads(Integer value)
@ModelNodeBinding(detypedName="hung-task-threshold") public Long hungTaskThreshold()
public T hungTaskThreshold(Long value)
@ModelNodeBinding(detypedName="jndi-name") public String jndiName()
public T jndiName(String value)
@ModelNodeBinding(detypedName="keepalive-time") public Long keepaliveTime()
public T keepaliveTime(Long value)
@ModelNodeBinding(detypedName="long-running-tasks") public Boolean longRunningTasks()
public T longRunningTasks(Boolean value)
@ModelNodeBinding(detypedName="reject-policy") public RejectPolicy rejectPolicy()
public T rejectPolicy(RejectPolicy value)
@ModelNodeBinding(detypedName="thread-factory") public String threadFactory()
Copyright © 2017 JBoss by Red Hat. All rights reserved.