com.virtuosotechnologies.lib.asyncjob
Class ThreadSpawningAsyncJobRunner

java.lang.Object
  extended bycom.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
      extended bycom.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.


Nested Class Summary
 
Nested classes inherited from class com.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
AbstractAsyncJobRunner.ExecutionImpl
 
Constructor Summary
ThreadSpawningAsyncJobRunner()
          Constructor
 
Method Summary
 AsyncJobExecution startJob(AsyncJob job)
          Start a job
 
Methods inherited from class com.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
addAsyncJobListener, removeAsyncJobListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSpawningAsyncJobRunner

public ThreadSpawningAsyncJobRunner()
Constructor

Method Detail

startJob

public AsyncJobExecution startJob(AsyncJob job)
Start a job

Parameters:
job - job to start
Returns:
an object to use to track execution progress