Package org.jobrunr.jobs.lambdas
Interface JobRequest
-
- All Superinterfaces:
JobRunrJob
,java.io.Serializable
public interface JobRequest extends JobRunrJob
Classes implementing this interface can be used to enqueue a JobRunr Job and will be used as the argument for the actualJobRequestHandler
. Make sure that yourJobRequest
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 therun
method and pass it JobRequest as argument.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends JobRequestHandler>
getJobRequestHandler()
-
-
-
Method Detail
-
getJobRequestHandler
java.lang.Class<? extends JobRequestHandler> getJobRequestHandler()
-
-