public class JobManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JobManager.Job
A job to be managed by a
JobManager. |
| Constructor and Description |
|---|
JobManager(int threads)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeJobs(Collection<JobManager.Job> jobs)
Executes a list of jobs.
|
void |
shutdown()
Shuts the manager down.
|
public JobManager(int threads)
threads - number of threadspublic void executeJobs(Collection<JobManager.Job> jobs) throws CancellationException, SQLException
jobs - the job-listCancellationExceptionSQLExceptionpublic void shutdown()