Class SucceededWhileAnyOtherConcurrentStateChange
java.lang.Object
org.jobrunr.server.concurrent.statechanges.AbstractAllowedConcurrentStateChange
org.jobrunr.server.concurrent.statechanges.SucceededWhileAnyOtherConcurrentStateChange
- All Implemented Interfaces:
AllowedConcurrentStateChange
public class SucceededWhileAnyOtherConcurrentStateChange
extends AbstractAllowedConcurrentStateChange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true of the currentAllowedConcurrentStateChange
can resolve the concurrent modified jobs.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
-
Constructor Details
-
SucceededWhileAnyOtherConcurrentStateChange
-
-
Method Details
-
matches
Description copied from class:AbstractAllowedConcurrentStateChange
Returns true of the currentAllowedConcurrentStateChange
can resolve the concurrent modified jobs.- Specified by:
matches
in interfaceAllowedConcurrentStateChange
- Overrides:
matches
in classAbstractAllowedConcurrentStateChange
- Parameters:
localState
- the local state to match or null to match all local statesstorageProviderState
- the storage provider state to match. May not be null.- Returns:
- true if this
AllowedConcurrentStateChange
can resolve the concurrent state change, false otherwise.
-
resolve
- Specified by:
resolve
in interfaceAllowedConcurrentStateChange
- Overrides:
resolve
in classAbstractAllowedConcurrentStateChange
-