JBoss Threads 2.0.0.GA

org.jboss.threads
Interface DirectExecutor

All Superinterfaces:
Executor
All Known Subinterfaces:
DirectExecutorService

public interface DirectExecutor
extends Executor

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.

See Also:
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

execute

void execute(Runnable command)
Executes the given command in the calling thread.

Specified by:
execute in interface Executor
Parameters:
command - the runnable task
Throws:
RejectedExecutionException - if this task cannot be accepted for execution
NullPointerException - if command is null

JBoss Threads 2.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.