com.virtuosotechnologies.lib.asyncjob
Class ThreadSpawningAsyncJobRunner
java.lang.Object
com.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
com.virtuosotechnologies.lib.asyncjob.ThreadSpawningAsyncJobRunner
- All Implemented Interfaces:
- AsyncJobRunner
- public class ThreadSpawningAsyncJobRunner
- extends AbstractAsyncJobRunner
AsyncJobRunner that spawns a new thread for each job.
This class is thread safe.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadSpawningAsyncJobRunner
public ThreadSpawningAsyncJobRunner()
- Constructor
startJob
public AsyncJobExecution startJob(AsyncJob job)
- Start a job
- Parameters:
job
- job to start
- Returns:
- an object to use to track execution progress