Class JobPerformedOnOtherBackgroundJobServerConcurrentStateChange
- java.lang.Object
-
- org.jobrunr.server.concurrent.statechanges.JobPerformedOnOtherBackgroundJobServerConcurrentStateChange
-
- All Implemented Interfaces:
AllowedConcurrentStateChange
@Because("https://github.com/jobrunr/jobrunr/issues/429") public class JobPerformedOnOtherBackgroundJobServerConcurrentStateChange extends java.lang.Object implements AllowedConcurrentStateChange
-
-
Constructor Summary
Constructors Constructor Description JobPerformedOnOtherBackgroundJobServerConcurrentStateChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(Job localJob, Job storageProviderJob)
boolean
matches(StateName localState, StateName storageProviderState)
ConcurrentJobModificationResolveResult
resolve(Job localJob, Job storageProviderJob)
-
-
-
Method Detail
-
matches
public boolean matches(Job localJob, Job storageProviderJob)
- Specified by:
matches
in interfaceAllowedConcurrentStateChange
-
matches
public boolean matches(StateName localState, StateName storageProviderState)
- Specified by:
matches
in interfaceAllowedConcurrentStateChange
-
resolve
public ConcurrentJobModificationResolveResult resolve(Job localJob, Job storageProviderJob)
- Specified by:
resolve
in interfaceAllowedConcurrentStateChange
-
-