Class RetentionCriteria

    • Constructor Detail

      • RetentionCriteria

        public RetentionCriteria()
    • Method Detail

      • snapshotEvery

        public static SnapshotCountRetentionCriteria snapshotEvery​(int numberOfEvents,
                                                                   int keepNSnapshots)
        Save snapshots automatically every numberOfEvents. Snapshots that have sequence number less than the sequence number of the saved snapshot minus keepNSnapshots * numberOfEvents are automatically deleted.

        Use SnapshotCountRetentionCriteria.withDeleteEventsOnSnapshot to delete old events. Events are not deleted by default.

        Parameters:
        numberOfEvents - (undocumented)
        keepNSnapshots - (undocumented)
        Returns:
        (undocumented)