Package com.sodius.oslc.server.core.jobs
Interface JobRunner
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface JobRunner
Executes a job. The runner is expected to perform its own error handling by catching exceptions as appropriate.- Since:
- 3.11.0
- See Also:
Job.Builder.runner(JobRunner)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(Job job)
Called by theJobScheduler
when it is time for a job to run.
-
-
-
Method Detail
-
run
void run(Job job)
Called by theJobScheduler
when it is time for a job to run. The runner is expected to perform its own error handling by catching exceptions as appropriate.- Parameters:
job
- the job to run
-
-