public class ManagedScheduledExecutorService extends Object
| Constructor and Description |
|---|
ManagedScheduledExecutorService(String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
contextService()
The name of the context service to be used by the scheduled executor.
|
ManagedScheduledExecutorService |
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.
|
ManagedScheduledExecutorService |
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.
|
ManagedScheduledExecutorService |
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.
|
ManagedScheduledExecutorService |
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.
|
ManagedScheduledExecutorService |
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.
|
ManagedScheduledExecutorService |
longRunningTasks(Boolean value)
Flag which hints the duration of tasks executed by the scheduled executor.
|
String |
rejectPolicy()
The policy to be applied to aborted tasks.
|
ManagedScheduledExecutorService |
rejectPolicy(String value)
The policy to be applied to aborted tasks.
|
String |
threadFactory()
The name of the thread factory to be used by the scheduled executor.
|
ManagedScheduledExecutorService |
threadFactory(String value)
The name of the thread factory to be used by the scheduled executor.
|
public ManagedScheduledExecutorService(String key)
public String getKey()
public String contextService()
public ManagedScheduledExecutorService contextService(String value)
public Integer coreThreads()
public ManagedScheduledExecutorService coreThreads(Integer value)
public Long hungTaskThreshold()
public ManagedScheduledExecutorService hungTaskThreshold(Long value)
public String jndiName()
public ManagedScheduledExecutorService jndiName(String value)
public Long keepaliveTime()
public ManagedScheduledExecutorService keepaliveTime(Long value)
public Boolean longRunningTasks()
public ManagedScheduledExecutorService longRunningTasks(Boolean value)
public String rejectPolicy()
public ManagedScheduledExecutorService rejectPolicy(String value)
public String threadFactory()
public ManagedScheduledExecutorService threadFactory(String value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.