Package org.jobrunr.server.concurrent
Class UseStorageProviderJobConcurrentJobModificationResolver
java.lang.Object
org.jobrunr.server.concurrent.UseStorageProviderJobConcurrentJobModificationResolver
- All Implemented Interfaces:
ConcurrentJobModificationResolver
@Beta
public class UseStorageProviderJobConcurrentJobModificationResolver
extends Object
implements ConcurrentJobModificationResolver
A new implementation of
ConcurrentJobModificationResolver
that will always use the latest version of the job found in the database (SQL or NoSQL).
Only use this ConcurrentJobModificationResolver
if you are altering jobs after they started processing (e.g. e.g. deleting, rescheduling, ...).
Using this ConcurrentJobModificationResolver
can result in the same job being executed multiple times.
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionresolve
(Job localJob, ConcurrentJobModificationException e) void
-
Constructor Details
-
UseStorageProviderJobConcurrentJobModificationResolver
-
-
Method Details
-
resolve
- Specified by:
resolve
in interfaceConcurrentJobModificationResolver
-
resolve
public ConcurrentJobModificationResolveResult resolve(Job localJob, ConcurrentJobModificationException e)
-