public class TriangleOrderAction extends Object implements Action
Action that checks if the command is the next to be executed.
This action is used by the triangle algorithm to order updates from the primary owner to the backup owner.
| Constructor and Description |
|---|
TriangleOrderAction(TrianglePerCacheInboundInvocationHandler handler,
long sequenceNumber,
int segmentId) |
| Modifier and Type | Method and Description |
|---|---|
ActionStatus |
check(ActionState state)
It checks this action.
|
void |
onFinally(ActionState state)
Invoked always after the command is executed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, onExceptionpublic TriangleOrderAction(TrianglePerCacheInboundInvocationHandler handler, long sequenceNumber, int segmentId)
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 onFinally(ActionState state)
ActionCopyright © 2022 JBoss by Red Hat. All rights reserved.