Package com.atlassian.jira.index.ha
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 TypeMethodDescriptionlonggetIndexOperationCounterForNodeId(String sendingNodeId) Retrieve id of latest operation ofsendingNodeIdthat was included in this node's indexvoidstoreHighestIdForNode(String sendingNodeId, long indexOperationId) StoreindexOperationIdas id of latest operation ofsendingNodeIdthat was included in current node's index
-
Method Details
-
storeHighestIdForNode
StoreindexOperationIdas id of latest operation ofsendingNodeIdthat was included in current node's index- Parameters:
sendingNodeId-indexOperationId-
-
getIndexOperationCounterForNodeId
Retrieve id of latest operation ofsendingNodeIdthat was included in this node's index- Parameters:
sendingNodeId-
-