public class CheckTopologyAction extends Object implements Action
Action implementation that checks if the command topology id is valid.
The command topology id is valid when it is higher or equal thant the first topology as member for this node.| Constructor and Description |
|---|
CheckTopologyAction(BasePerCacheInboundInvocationHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ActionListener listener)
Adds a listener to be invoked when this action is ready or canceled.
|
ActionStatus |
check(ActionState state)
It checks this action.
|
void |
cleanup(ActionState state)
Cleanups when it is no longer needed.
|
public CheckTopologyAction(BasePerCacheInboundInvocationHandler handler)
public ActionStatus check(ActionState state)
ActionActionStatus.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.public void addListener(ActionListener listener)
ActionaddListener in interface Actionlistener - the ActionListener to add.public void cleanup(ActionState state)
ActionCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.