
org.jobrunr.jobs.lambdas.JobRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jobrunr Show documentation
Show all versions of jobrunr Show documentation
An easy way to perform background processing on the JVM. Backed by persistent storage. Open and free for commercial use.
package org.jobrunr.jobs.lambdas;
/**
* Classes implementing this interface can be used to enqueue a JobRunr Job and will be used as the
* argument for the actual {@link JobRequestHandler}.
*
* Make sure that your {@code 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 {@link JobRequestHandler} in the IoC container or create a
* new instance using the default constructor. Next, it will call the {@code run} method and pass it JobRequest as argument.
*/
public interface JobRequest extends JobRunrJob {
Class extends JobRequestHandler> getJobRequestHandler();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy