Package org.jobrunr.server.concurrent
Class DefaultConcurrentJobModificationResolver
java.lang.Object
org.jobrunr.server.concurrent.DefaultConcurrentJobModificationResolver
- All Implemented Interfaces:
ConcurrentJobModificationResolver
public class DefaultConcurrentJobModificationResolver
extends Object
implements ConcurrentJobModificationResolver
Default implementation of
ConcurrentJobModificationResolver
.
If Jobs are deleted, the DefaultConcurrentJobModificationResolver
will resolve the concurrent job modification
by stopping the processing of the job. For other concurrent modifications, the DefaultConcurrentJobModificationResolver
will
throw UnresolvableConcurrentJobModificationException
as these may point to programming errors (JobRunr was conceived with the idea that once a
job is being processed, it should not be modified anymore).
-
Constructor Summary
ConstructorDescriptionDefaultConcurrentJobModificationResolver
(StorageProvider storageProvider, JobZooKeeper jobZooKeeper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Constructor Details
-
DefaultConcurrentJobModificationResolver
public DefaultConcurrentJobModificationResolver(StorageProvider storageProvider, JobZooKeeper jobZooKeeper)
-
-
Method Details
-
resolve
- Specified by:
resolve
in interfaceConcurrentJobModificationResolver
-
resolve
-