com.virtuosotechnologies.lib.asyncjob
Class BlockingAsyncJobRunner

java.lang.Object
  extended bycom.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
      extended bycom.virtuosotechnologies.lib.asyncjob.BlockingAsyncJobRunner
All Implemented Interfaces:
AsyncJobRunner

public class BlockingAsyncJobRunner
extends AbstractAsyncJobRunner

AsyncJobRunner that blocks on each job until it finishes. This class is thread safe.


Nested Class Summary
 
Nested classes inherited from class com.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
AbstractAsyncJobRunner.ExecutionImpl
 
Constructor Summary
BlockingAsyncJobRunner()
          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

BlockingAsyncJobRunner

public BlockingAsyncJobRunner()
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