Class AbstractAllowedConcurrentStateChange
- java.lang.Object
-
- cn.boboweike.carrot.server.concurrent.statechanges.AbstractAllowedConcurrentStateChange
-
- All Implemented Interfaces:
AllowedConcurrentStateChange
- Direct Known Subclasses:
DeletedWhileEnqueuedConcurrentStateChange,DeletedWhileFailedConcurrentStateChange,DeletedWhileProcessingConcurrentStateChange,DeletedWhileScheduledConcurrentStateChange,DeletedWhileSucceededConcurrentStateChange,PermanentlyDeletedWhileProcessingConcurrentStateChange
public abstract class AbstractAllowedConcurrentStateChange extends Object implements AllowedConcurrentStateChange
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAllowedConcurrentStateChange(StateName localState, StateName storageProviderState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(StateName localState, StateName storageProviderState)ConcurrentTaskModificationResolveResultresolve(Task localTask, Task storageProviderTask)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.boboweike.carrot.server.concurrent.statechanges.AllowedConcurrentStateChange
matches
-
-
-
-
Method Detail
-
matches
public boolean matches(StateName localState, StateName storageProviderState)
- Specified by:
matchesin interfaceAllowedConcurrentStateChange
-
resolve
public ConcurrentTaskModificationResolveResult resolve(Task localTask, Task storageProviderTask)
- Specified by:
resolvein interfaceAllowedConcurrentStateChange
-
-