public class AsyncJobsManager extends java.lang.Object implements Disposable
Constructor and Description |
---|
AsyncJobsManager() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the resources associated to an object
|
void |
submit(groovy.lang.Closure job,
groovy.lang.Closure successOrErrorCallBack)
submit helper for groovy code
|
void |
submit(groovy.lang.Closure job,
groovy.lang.Closure successCallBack,
groovy.lang.Closure errorCallBack)
submit helper for groovy code
|
void |
submitAlreadyExecutedJobToTrack(java.util.concurrent.Future f,
JobEvent e)
Submit an asynchrone Job
|
void |
submitAndExecuteJob(java.util.concurrent.Callable f,
JobEvent e)
Execute and submit the asynchronous job
|
public void submitAlreadyExecutedJobToTrack(java.util.concurrent.Future f, JobEvent e)
f
- the job to do, might be cancellablee
- the object who is called when events occurs in the processingpublic void submitAndExecuteJob(java.util.concurrent.Callable f, JobEvent e)
f
- e
- public void submit(groovy.lang.Closure job, groovy.lang.Closure successOrErrorCallBack)
job
- the job to be donesuccessOrErrorCallBack
- in case of success or error, call this closurepublic void submit(groovy.lang.Closure job, groovy.lang.Closure successCallBack, groovy.lang.Closure errorCallBack)
job
- the job to be donesuccessCallBack
- in case of success, call this closureerrorCallBack
- in case of error, call this closurepublic void dispose()
Disposable
dispose
in interface Disposable