com.virtuosotechnologies.lib.asyncjob
Class AsyncJobStartedEvent
java.lang.Object
java.util.EventObject
com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
com.virtuosotechnologies.lib.asyncjob.AsyncJobStartedEvent
- All Implemented Interfaces:
- Serializable
- public class AsyncJobStartedEvent
- extends AsyncJobEvent
An event sent to a listener when a job has started.
- See Also:
- Serialized Form
AsyncJobStartedEvent
public AsyncJobStartedEvent(AsyncJobRunner runner,
AsyncJobExecution execution)
- Constructor. This is for events broadcast by the AsyncJobRunner.
runner must == execution.getAsyncJobRunner(), or IllegalArgumentException will be thrown.
- Parameters:
runner
- AsyncJobRunner broadcasting the event.execution
- AsyncJobExecution tracking the execution
AsyncJobStartedEvent
public AsyncJobStartedEvent(AsyncJobExecution execution)
- Constructor. This is for events broadcast by the AsyncJobExecution.
- Parameters:
execution
- AsyncJobExecution tracking the execution
getExecution
public final AsyncJobExecution getExecution()
- Get the execution tracker.
- Returns:
- the AsyncJobExecution tracking the execution