Class BasePerCacheInboundInvocationHandler

java.lang.Object
org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler
All Implemented Interfaces:
PerCacheInboundInvocationHandler
Direct Known Subclasses:
NonTxPerCacheInboundInvocationHandler, TrianglePerCacheInboundInvocationHandler, TxPerCacheInboundInvocationHandler

public abstract class BasePerCacheInboundInvocationHandler extends Object implements PerCacheInboundInvocationHandler
Implementation with the default handling methods and utilities methods.
Since:
7.1
Author:
Pedro Ruivo
  • Field Details

  • Constructor Details

    • BasePerCacheInboundInvocationHandler

      public BasePerCacheInboundInvocationHandler()
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • isStopped

      public boolean isStopped()
    • isCommandSentBeforeFirstTopology

      public final boolean isCommandSentBeforeFirstTopology(int commandTopologyId)
    • setFirstTopologyAsMember

      public void setFirstTopologyAsMember(int firstTopologyAsMember)
      Specified by:
      setFirstTopologyAsMember in interface PerCacheInboundInvocationHandler
      Parameters:
      firstTopologyAsMember - The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
    • getFirstTopologyAsMember

      public int getFirstTopologyAsMember()
      Specified by:
      getFirstTopologyAsMember in interface PerCacheInboundInvocationHandler
      Returns:
      The first topology in which the local node was a member. Any command with a lower topology id will be ignored.
    • checkForReadyTasks

      public void checkForReadyTasks()
      Description copied from interface: PerCacheInboundInvocationHandler
      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.
      Specified by:
      checkForReadyTasks in interface PerCacheInboundInvocationHandler