public interface JobService
| Modifier and Type | Method and Description |
|---|---|
<Q,R> JobStatus<Q,R> |
getJobStatus(JobIdentifier<Q,R> id)
Queries for the status of a job created by
submitJob(JobRequest) |
boolean |
pause()
Stops the job service from processing any new jobs from the queue.
|
boolean |
resume()
Resumes the job service after a prior call to
pause(). |
<Q,R> JobIdentifier<Q,R> |
submitJob(JobRequest<Q,R> jobRequest)
Submits a new job to the JobService.
|
<Q,R> JobIdentifier<Q,R> submitJob(JobRequest<Q,R> jobRequest)
Q - The job request typeR - The job response typejobRequest - The request that encapsulates the job type and parameters.<Q,R> JobStatus<Q,R> getJobStatus(JobIdentifier<Q,R> id)
submitJob(JobRequest)Q - The job request typeR - The job response typeid - The identifier returned from the original submit request.boolean pause()
boolean resume()
pause().Copyright © 2020. All Rights Reserved.