Package EDU.oswego.cs.dl.util.concurrent
Class DirectExecutor
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.DirectExecutor
- All Implemented Interfaces:
Executor
An implementation of Executor that
invokes the run method of the supplied command and then returns.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DirectExecutor
public DirectExecutor()
-
-
Method Details
-
execute
Execute the given command directly in the current thread.- Specified by:
execute
in interfaceExecutor
- Throws:
InterruptedException
-