Class SyntheticFlowTimestampPolicy

    • Constructor Detail

      • SyntheticFlowTimestampPolicy

        public SyntheticFlowTimestampPolicy()
    • Method Detail

      • getTimestampForFlow

        public abstract org.joda.time.Instant getTimestampForFlow​(org.opennms.netmgt.flows.persistence.model.FlowDocument fd)
        Side effecting method that returns the timestamp for a flow document. A timestamp policy may track the observed flow documents in order to update its watermark estimation.
      • getWatermark

        public abstract org.joda.time.Instant getWatermark()
        Returns the estimation of the current watermark.
      • getCheckpointInstant

        public abstract org.joda.time.Instant getCheckpointInstant()
        Returns the time instant that is stored in FlowReader.CheckpointMark instances. Different timestamp policies may return different time instances, e.g. the current watermark or the maximum observed flow timestamp.