public class PendingTxAction extends BaseLockingAction implements PendingLockListener
Action
implementation that check for older topology transactions.
This action is ready when no older topology transactions exists or is canceled when the timeout occurs.BaseLockingAction.InternalState
Constructor and Description |
---|
PendingTxAction(PendingLockManager pendingLockManager,
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 state) |
protected ActionStatus |
init(ActionState state) |
void |
onReady()
Invoked when
PendingLockPromise is ready. |
cas, check, cleanup, getAndUpdateFilteredKeys
public PendingTxAction(PendingLockManager pendingLockManager, ClusteringDependentLogic clusteringDependentLogic)
protected ActionStatus checking(ActionState state)
checking
in class BaseLockingAction
protected ActionStatus init(ActionState state)
init
in class BaseLockingAction
public void addListener(ActionListener listener)
Action
addListener
in interface Action
listener
- the ActionListener
to add.public void onReady()
PendingLockListener
PendingLockPromise
is ready.onReady
in interface PendingLockListener
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.