Interface NodeIndexCounterStore

All Known Implementing Classes:
ClusterNodeIndexCounterManager, IndexCounterManager, NoOpNodeIndexCounterManager

public interface NodeIndexCounterStore
Interface for performing read/write operations regarding node's current state of replication changes from other nodes. Should be used instead of direct interactions with the DB.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Retrieve id of latest operation of sendingNodeId that was included in this node's index
    void
    storeHighestIdForNode(String sendingNodeId, long indexOperationId)
    Store indexOperationId as id of latest operation of sendingNodeId that was included in current node's index
  • Method Details

    • storeHighestIdForNode

      void storeHighestIdForNode(String sendingNodeId, long indexOperationId)
      Store indexOperationId as id of latest operation of sendingNodeId that was included in current node's index
      Parameters:
      sendingNodeId -
      indexOperationId -
    • getIndexOperationCounterForNodeId

      long getIndexOperationCounterForNodeId(String sendingNodeId)
      Retrieve id of latest operation of sendingNodeId that was included in this node's index
      Parameters:
      sendingNodeId -