public class ManagedExecutorService extends Object
| Constructor and Description |
|---|
ManagedExecutorService(String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
contextService()
The name of the context service to be used by the executor.
|
ManagedExecutorService |
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.
|
ManagedExecutorService |
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.
|
ManagedExecutorService |
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.
|
ManagedExecutorService |
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.
|
ManagedExecutorService |
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.
|
ManagedExecutorService |
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.
|
ManagedExecutorService |
maxThreads(Integer value)
The maximum number of threads to be used by the executor.
|
Integer |
queueLength()
The executors task queue capacity.
|
ManagedExecutorService |
queueLength(Integer value)
The executors task queue capacity.
|
String |
rejectPolicy()
The policy to be applied to aborted tasks.
|
ManagedExecutorService |
rejectPolicy(String value)
The policy to be applied to aborted tasks.
|
String |
threadFactory()
The name of the thread factory to be used by the executor.
|
ManagedExecutorService |
threadFactory(String value)
The name of the thread factory to be used by the executor.
|
public ManagedExecutorService(String key)
public String getKey()
public String contextService()
public ManagedExecutorService contextService(String value)
public Integer coreThreads()
public ManagedExecutorService coreThreads(Integer value)
public Long hungTaskThreshold()
public ManagedExecutorService hungTaskThreshold(Long value)
public String jndiName()
public ManagedExecutorService jndiName(String value)
public Long keepaliveTime()
public ManagedExecutorService keepaliveTime(Long value)
public Boolean longRunningTasks()
public ManagedExecutorService longRunningTasks(Boolean value)
public Integer maxThreads()
public ManagedExecutorService maxThreads(Integer value)
public Integer queueLength()
public ManagedExecutorService queueLength(Integer value)
public String rejectPolicy()
public ManagedExecutorService rejectPolicy(String value)
public String threadFactory()
public ManagedExecutorService threadFactory(String value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.