com.virtuosotechnologies.lib.asyncjob
Class AsyncJobCompletedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
          extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobCompletedEvent
All Implemented Interfaces:
Serializable

public class AsyncJobCompletedEvent
extends AsyncJobEvent

An event sent to an AsyncJobListener when a job has finished

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AsyncJobCompletedEvent(AsyncJobExecution execution, Object result)
          Constructor
AsyncJobCompletedEvent(AsyncJobRunner runner, AsyncJob job, Object result)
          Constructor
 
Method Summary
 Object getResult()
          Get the result object returned from the job
 
Methods inherited from class com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
getAsyncJob, getAsyncJobExecution, getAsyncJobRunner
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncJobCompletedEvent

public AsyncJobCompletedEvent(AsyncJobRunner runner,
                              AsyncJob job,
                              Object result)
Constructor

Parameters:
runner - AsyncJobRunner running the job
job - AsyncJob that just completed
result - result object returned from the job

AsyncJobCompletedEvent

public AsyncJobCompletedEvent(AsyncJobExecution execution,
                              Object result)
Constructor

Parameters:
execution - AsyncJobExecution broadcasting the event
result - result object returned from the job
Method Detail

getResult

public final Object getResult()
Get the result object returned from the job

Returns:
the result object