Package com.avoka.tm.svc
Class JobSvc
java.lang.Object
com.avoka.tm.svc.JobSvc
Provides a job value object svc class.
Examples
Please find the job svc examples below.
Process or Cancels a Job
This Groovy example shows how to cancel or process a job.
import com.avoka.tm.svc.* import com.avoka.tm.vo.* new JobSvc(job) .cancel() new JobSvc() .setId(123) .process()
- Since:
- 19.5.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JobSvc
public JobSvc()Create a job service. -
JobSvc
Create a job service setting the job to update.- Parameters:
job
- the Job to update.
-
-
Method Details
-
setId
Set the id of the job to update.- Parameters:
id
- the id (Long) of the job to update- Returns:
- the job updater
-
process
Process the job immediately. -
cancel
Cancel the job.
-