public abstract class JobManager
extends java.lang.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(java.util.Collection<JobManager.Job> jobs)
Executes a list of jobs.
|
protected abstract void |
onException(java.lang.Throwable t) |
void |
shutdown()
Shuts the manager down.
|
public JobManager(int threads)
threads
- number of threadspublic void executeJobs(java.util.Collection<JobManager.Job> jobs) throws CancellationException, java.sql.SQLException
jobs
- the job-listCancellationException
java.sql.SQLException
public void shutdown()
protected abstract void onException(java.lang.Throwable t)