EDU.oswego.cs.dl.util.concurrent
Class DirectExecutor
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.DirectExecutor
- All Implemented Interfaces:
- Executor
- public class DirectExecutor
- extends Object
- implements Executor
An implementation of Executor that
invokes the run method of the supplied command and then returns.
[ Introduction to this package. ]
Method Summary |
void |
execute(Runnable command)
Execute the given command directly in the current thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectExecutor
public DirectExecutor()
execute
public void execute(Runnable command)
throws InterruptedException
- Execute the given command directly in the current thread.
- Specified by:
execute
in interface Executor
- Throws:
InterruptedException