com.virtuosotechnologies.lib.asyncjob
Class BlockingAsyncJobRunner
java.lang.Object
com.virtuosotechnologies.lib.asyncjob.AbstractAsyncJobRunner
com.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockingAsyncJobRunner
public BlockingAsyncJobRunner()
- Constructor
startJob
public AsyncJobExecution startJob(AsyncJob job)
- Start a job
- Parameters:
job
- job to start
- Returns:
- an object to use to track execution progress