EDU.oswego.cs.dl.util.concurrent

Class DirectExecutor

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
voidexecute(Runnable command)
Execute the given command directly in the current thread.

Method Detail

execute

public void execute(Runnable command)
Execute the given command directly in the current thread.