Class AbstractAllowedConcurrentStateChange
- java.lang.Object
-
- org.jobrunr.server.concurrent.statechanges.AbstractAllowedConcurrentStateChange
-
- All Implemented Interfaces:
AllowedConcurrentStateChange
- Direct Known Subclasses:
DeletedWhileEnqueuedConcurrentStateChange
,DeletedWhileFailedConcurrentStateChange
,DeletedWhileProcessingConcurrentStateChange
,DeletedWhileScheduledConcurrentStateChange
,DeletedWhileSucceededConcurrentStateChange
,PermanentlyDeletedWhileProcessingConcurrentStateChange
public abstract class AbstractAllowedConcurrentStateChange extends java.lang.Object implements AllowedConcurrentStateChange
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAllowedConcurrentStateChange(StateName localState, StateName storageProviderState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(StateName localState, StateName storageProviderState)
ConcurrentJobModificationResolveResult
resolve(Job localJob, Job storageProviderJob)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jobrunr.server.concurrent.statechanges.AllowedConcurrentStateChange
matches
-
-
-
-
Method Detail
-
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
-
-