Synchronous Jobs

The easiest way to run a job is synchronously. You instantiate a Job instance, passing in the DataReader and DataWriter, and call run().

The run method will execute in the current thread, causing it to block until the job is complete.

The old way of running jobs with the JobTemplate — JobTemplate.DEFAULT.transfer(reader, writer); — still works. Behind the scenes, JobTemplate now uses the new Job class to receive all the benefits mentioned above.

Mobile Analytics