Interface PerCacheInboundInvocationHandler
- All Known Implementing Classes:
AbstractDelegatingHandler,BasePerCacheInboundInvocationHandler,NonTxPerCacheInboundInvocationHandler,TrianglePerCacheInboundInvocationHandler,TxPerCacheInboundInvocationHandler
public interface PerCacheInboundInvocationHandler
Interface to invoke when a
CacheRpcCommand is received from other node in the
local site.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if any pending tasks are now ready to be ran and will run in them in a separate thread.intvoidhandle(CacheRpcCommand command, Reply reply, DeliverOrder order) Handles theCacheRpcCommandfrom other node.voidsetFirstTopologyAsMember(int firstTopologyAsMember)
-
Method Details
-
handle
Handles theCacheRpcCommandfrom other node.- Parameters:
command- theCacheRpcCommandto handle.reply- the return value is passed to this object in order to be sent back to the senderorder- theDeliverOrderin which the command was sent
-
setFirstTopologyAsMember
void setFirstTopologyAsMember(int firstTopologyAsMember) - Parameters:
firstTopologyAsMember- The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
-
getFirstTopologyAsMember
int getFirstTopologyAsMember()- Returns:
- The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
-
checkForReadyTasks
void checkForReadyTasks()Checks if any pending tasks are now ready to be ran and will run in them in a separate thread. This method does not block.
-