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).