EDU.oswego.cs.dl.util.concurrent
public class: ThreadedExecutor [javadoc |
source]
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
EDU.oswego.cs.dl.util.concurrent.ThreadedExecutor
All Implemented Interfaces:
Executor
Direct Known Subclasses:
ForcedStartThreadedExecutor
An implementation of Executor that creates a new
Thread that invokes the run method of the supplied command.
[ Introduction to this package. ]
Method from EDU.oswego.cs.dl.util.concurrent.ThreadedExecutor Summary: |
---|
execute |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from EDU.oswego.cs.dl.util.concurrent.ThreadedExecutor Detail: |
public synchronized void execute(Runnable command) throws InterruptedException {
if (Thread.interrupted())
throw new InterruptedException();
Thread thread = getThreadFactory().newThread(command);
thread.start();
}
Execute the given command in a new thread. |