Package com.storedobject.core
Class DataChangeProcessor
java.lang.Object
com.storedobject.job.Job
com.storedobject.job.DaemonJob
com.storedobject.core.DataChangeProcessor
The DataChangeProcessor class extends the DaemonJob class and represents a job that processes data changes.
It runs in the background and its execute method is invoked only once. The execute method may be invoked again
if an error occurred during the previous run or the
isActive()
method returns false when it is due again.
The DataChangeProcessor class should be instantiated with a schedule defined for this job.- Author:
- Syam
-
Constructor Details
-
DataChangeProcessor
Constructor.- Parameters:
schedule
- Schedule defined for this Job.
-
-
Method Details
-
execute
Executes the DataChangeProcessor job. This method is overridden from the super classDaemonJob
. It is called to perform the execution of the job. The execute method is invoked only once and runs in the background. If an error occurred during the previous run or theisActive()
method returns false when it is due again, the execute method may be invoked again. -
isActive
public boolean isActive()Description copied from class:DaemonJob
Check if the Job is still active or not. (The default implementation always returnstrue
). If this method returnsfalse
, the Job Scheduler will invoke theJob.execute()
method again when it is due for the next run. -
shutdown
-