| dalma.Executor
All known Subclasses: dalma.helpers.ThreadPoolExecutor, dalma.helpers.Java5Executor,
Executor | public interface Executor (Code) | | An object that executes the submitted
Runnable s.
This interface allows the engine to be used with JDK 5.0's concurrency utilities,
without introducing a hard-coded dependency.
author: Kohsuke Kawaguchi |
Method Summary | |
void | execute(Runnable command) | void | stop(long timeout) Shuts down the executor.
This method blocks until all the scheduled
Runnable s are completed,
or the timeout occurs.
Parameters: timeout - Number of milliseconds to wait. |
stop | void stop(long timeout) throws InterruptedException(Code) | | Shuts down the executor.
This method blocks until all the scheduled
Runnable s are completed,
or the timeout occurs.
Parameters: timeout - Number of milliseconds to wait. 0 for no timeout. |
|
|