Class WatermarkDocument
java.lang.Object
org.alfresco.elasticsearch.batchindexing.model.WatermarkDocument
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intMonotonically increasing integer. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CURRENT_SCHEMA_VERSION
public static final int CURRENT_SCHEMA_VERSIONMonotonically increasing integer. Bump when the document structure changes so readers can migrate or reject incompatible documents.- See Also:
-
-
Constructor Details
-
WatermarkDocument
public WatermarkDocument()
-