Modifier and Type | Class and Description |
---|---|
protected static class |
BaseLockingAction.InternalState |
Constructor and Description |
---|
BaseLockingAction(DistributionManager distributionManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cas(BaseLockingAction.InternalState expectedState,
BaseLockingAction.InternalState newState) |
ActionStatus |
check(ActionState state)
It checks this action.
|
protected abstract ActionStatus |
checking(ActionState state) |
protected List<Object> |
getAndUpdateFilteredKeys(ActionState state) |
protected abstract ActionStatus |
init(ActionState state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, onException, onFinally
public BaseLockingAction(DistributionManager distributionManager)
public final ActionStatus check(ActionState state)
Action
ActionStatus.READY
or ActionStatus.CANCELED
are final states.
This method should be thread safe and idempotent since it can be invoked multiple times by multiples threads.protected abstract ActionStatus checking(ActionState state)
protected abstract ActionStatus init(ActionState state)
protected final boolean cas(BaseLockingAction.InternalState expectedState, BaseLockingAction.InternalState newState)
protected final List<Object> getAndUpdateFilteredKeys(ActionState state)
Copyright © 2021 JBoss by Red Hat. All rights reserved.