Interface OfflineRevisionTracker

All Known Implementing Classes:
OfflineEntityVersionService

public interface OfflineRevisionTracker
Tracks a monotonic revision number per entity kind so that offline clients can tell whether their local copy is stale.

Implemented by OfflineEntityVersionService in vireo-offline.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    bump(String entityKey)
    Increment and return the revision for entityKey.
  • Method Details

    • bump

      long bump(String entityKey)
      Increment and return the revision for entityKey.
      Returns:
      the new revision, or a non-positive value if the key is not tracked.