|
JBoss Threads 2.0.0.GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectExecutor
A direct executor. Such an executor is required to run the given task in the current thread rather than
delegate to a thread pool; furthermore, the task is guaranteed to be terminated when the call to the
execute(Runnable)
method returns.
JBossExecutors.directExecutor()
,
JBossExecutors.rejectingExecutor()
,
JBossExecutors.discardingExecutor()
,
JBossExecutors.privilegedExecutor(org.jboss.threads.DirectExecutor, java.security.AccessControlContext)
,
JBossExecutors.contextClassLoaderExecutor(org.jboss.threads.DirectExecutor, java.lang.ClassLoader)
,
JBossExecutors.threadNameExecutor(org.jboss.threads.DirectExecutor, java.lang.String)
,
JBossExecutors.threadNameNotateExecutor(org.jboss.threads.DirectExecutor, java.lang.String)
,
JBossExecutors.exceptionLoggingExecutor(DirectExecutor, org.jboss.logging.Logger)
,
JBossExecutors.exceptionLoggingExecutor(DirectExecutor)
,
JBossExecutors.resettingExecutor(org.jboss.threads.DirectExecutor)
Method Summary | |
---|---|
void |
execute(Runnable command)
Executes the given command in the calling thread. |
Method Detail |
---|
void execute(Runnable command)
execute
in interface Executor
command
- the runnable task
RejectedExecutionException
- if this task cannot be accepted for execution
NullPointerException
- if command is null
|
JBoss Threads 2.0.0.GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |