public class Executor extends Object implements Runnable
Constructor and Description |
---|
Executor(IThreadPool threadpool)
Create an executor object.
|
Executor(IThreadPool threadpool,
IExecutable executable)
Create an executor object.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Make sure a thread is executing the code.
|
void |
run()
Execute the code.
|
void |
setExecutable(IExecutable executable)
Set the executable.
|
IFuture<Void> |
shutdown()
Shutdown the executor.
|
public Executor(IThreadPool threadpool)
public Executor(IThreadPool threadpool, IExecutable executable)
public void execute()
public void setExecutable(IExecutable executable)
executable
- The executable.Copyright © 2012. All Rights Reserved.