EDU.oswego.cs.dl.util.concurrent

Class ThreadedExecutor

Implemented Interfaces:
Executor

public class ThreadedExecutor
extends ThreadFactoryUser
implements Executor

An implementation of Executor that creates a new Thread that invokes the run method of the supplied command.

[ Introduction to this package. ]

Nested Class Summary

Nested classes/interfaces inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser

ThreadFactoryUser.DefaultThreadFactory

Field Summary

Fields inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser

threadFactory_

Method Summary

void
execute(Runnable command)
Execute the given command in a new thread.

Methods inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser

getThreadFactory, setThreadFactory

Method Details

execute

public void execute(Runnable command)
            throws InterruptedException
Execute the given command in a new thread.
Specified by:
execute in interface Executor