public class ManagedScheduledExecutorService<T extends ManagedScheduledExecutorService<T>> extends Object
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 number of threads to be used by the scheduled executor, even if they
are idle.
|
T |
coreThreads(Integer value)
The number of threads to be used by the scheduled executor, even if they
are idle.
|
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.
|
public ManagedScheduledExecutorService(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 T jndiName(String value)
public Long keepaliveTime()
public T keepaliveTime(Long value)
public Boolean longRunningTasks()
public T longRunningTasks(Boolean value)
public RejectPolicy rejectPolicy()
public T rejectPolicy(RejectPolicy value)
public String threadFactory()
Copyright © 2019 JBoss by Red Hat. All rights reserved.