public class LockAction extends BaseLockingAction implements LockListener
Action implementation that acquire the locks.
It returns ActionStatus.READY when the locks are available to acquired or the acquisition failed (timeout or
deadlock).BaseLockingAction.InternalState| Constructor and Description |
|---|
LockAction(LockManager lockManager,
ClusteringDependentLogic clusteringDependentLogic) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ActionListener listener)
Adds a listener to be invoked when this action is ready or canceled.
|
protected ActionStatus |
checking(ActionState ignored) |
void |
cleanup(ActionState state)
Cleanups when it is no longer needed.
|
protected ActionStatus |
init(ActionState state) |
void |
onEvent(LockState state)
Invoked when the lock is available.
|
cas, check, getAndUpdateFilteredKeyspublic LockAction(LockManager lockManager, ClusteringDependentLogic clusteringDependentLogic)
protected ActionStatus checking(ActionState ignored)
checking in class BaseLockingActionprotected ActionStatus init(ActionState state)
init in class BaseLockingActionpublic void addListener(ActionListener listener)
ActionaddListener in interface Actionlistener - the ActionListener to add.public void cleanup(ActionState state)
Actioncleanup in interface Actioncleanup in class BaseLockingActionpublic void onEvent(LockState state)
LockListeneronEvent in interface LockListenerstate - the lock state. Possible values are LockState.ACQUIRED, LockState.TIMED_OUT or
LockState.DEADLOCKED.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.