com.virtuosotechnologies.lib.asyncjob
Interface AsyncJobRunner

All Known Implementing Classes:
AbstractAsyncJobRunner

public interface AsyncJobRunner

Something that runs AsyncJobs. Specific implementations of this interface will implement different strategies for running jobs, such as blocking the current thread, spawning a thread, or using threads in a pool.


Method Summary
 void addAsyncJobListener(AsyncJobListener listener)
          Add a job listener.
 void removeAsyncJobListener(AsyncJobListener listener)
          Remove a job listener.
 AsyncJobExecution startJob(AsyncJob job)
          Start a job using this runner.
 

Method Detail

startJob

public AsyncJobExecution startJob(AsyncJob job)
Start a job using this runner.

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

addAsyncJobListener

public void addAsyncJobListener(AsyncJobListener listener)
Add a job listener.

Parameters:
listener - listener to add

removeAsyncJobListener

public void removeAsyncJobListener(AsyncJobListener listener)
Remove a job listener.

Parameters:
listener - listener to remove