Class WatermarkDocument

java.lang.Object
org.alfresco.elasticsearch.batchindexing.model.WatermarkDocument

public class WatermarkDocument extends Object
Typed watermark document persisted in Elasticsearch. The purpose of this document is to act as a store for the reindexing cursor and remove the need for on-disk database otherwise. Field semantics:
  • schemaVersion — monotonically increasing integer; bump when the document structure changes so readers can migrate or reject incompatible documents.
  • lastSuccessful* — the time range of the last run that completed successfully (BatchStatus.COMPLETED). These define the trusted anchor for gap recovery.
  • lastRun* — the time range, status, and item counts of the most recent run regardless of outcome. Useful for diagnosing degraded runs without external logging.
  • updatedAt — ISO-8601 timestamp of when this document was last written.
  • Field Details

    • CURRENT_SCHEMA_VERSION

      public static final int CURRENT_SCHEMA_VERSION
      Monotonically increasing integer. Bump when the document structure changes so readers can migrate or reject incompatible documents.
      See Also:
  • Constructor Details

    • WatermarkDocument

      public WatermarkDocument()