public class TrianglePerCacheInboundInvocationHandler extends BasePerCacheInboundInvocationHandler implements LockListener, Action
PerCacheInboundInvocationHandler implementation for non-transactional and distributed caches that uses the
triangle algorithm.blockingExecutor, configuration, MBEAN_COMPONENT_NAME, nonBlockingExecutor| Constructor and Description |
|---|
TrianglePerCacheInboundInvocationHandler() |
| Modifier and Type | Method and Description |
|---|---|
ActionStatus |
check(ActionState state)
It checks this action.
|
protected Log |
getLog() |
TriangleOrderManager |
getTriangleOrderManager() |
void |
handle(CacheRpcCommand command,
Reply reply,
DeliverOrder order)
Handles the
CacheRpcCommand from other node. |
protected boolean |
isTraceEnabled() |
void |
onEvent(LockState state)
Invoked when the lock is available.
|
void |
onFinally(ActionState state)
Invoked always after the command is executed.
|
void |
start() |
checkForReadyTasks, getFirstTopologyAsMember, getStatisticsEnabled, getXSiteRequestsReceived, isCommandSentBeforeFirstTopology, isStatisticsEnabled, isStopped, registerXSiteCommandReceiver, resetStatistics, setFirstTopologyAsMember, setStatisticsEnabled, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, onExceptionpublic TrianglePerCacheInboundInvocationHandler()
public void start()
start in class BasePerCacheInboundInvocationHandlerpublic void handle(CacheRpcCommand command, Reply reply, DeliverOrder order)
PerCacheInboundInvocationHandlerCacheRpcCommand from other node.handle in interface PerCacheInboundInvocationHandlercommand - the CacheRpcCommand to handle.reply - the return value is passed to this object in order to be sent back to the senderorder - the DeliverOrder in which the command was sentpublic void onEvent(LockState state)
LockListeneronEvent in interface LockListenerstate - the lock state. Possible values are LockState.ACQUIRED, LockState.TIMED_OUT or
LockState.DEADLOCKED.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 TriangleOrderManager getTriangleOrderManager()
public void onFinally(ActionState state)
Actionprotected Log getLog()
getLog in class BasePerCacheInboundInvocationHandlerprotected boolean isTraceEnabled()
isTraceEnabled in class BasePerCacheInboundInvocationHandlerCopyright © 2022 JBoss by Red Hat. All rights reserved.