public interface DirectExecutor
extends java.util.concurrent.Executor
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)| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command)
Executes the given command in the calling thread.
|
void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executorcommand - the runnable taskjava.util.concurrent.RejectedExecutionException - if this task cannot be accepted for executionjava.lang.NullPointerException - if command is null