Interface JobRequest
- All Superinterfaces:
JobRunrJob, Serializable
Classes implementing this interface can be used to enqueue a JobRunr Job and will be used as the
argument for the actual
JobRequestHandler.
Make sure that your JobRequest class implementation can be serialized by your chosen Json library.
You will need a default no-arg constructor for deserialization.
While processing, JobRunr will lookup the actual JobRequestHandler in the IoC container or create a
new instance using the default constructor. Next, it will call the run method and pass it JobRequest as argument.
-
Method Summary
-
Method Details
-
getJobRequestHandler
Class<? extends JobRequestHandler> getJobRequestHandler()
-