Interface EventSourcedEntityOptions

    • Method Detail

      • snapshotEvery

        int snapshotEvery()
      • withSnapshotEvery

        EventSourcedEntityOptions withSnapshotEvery​(int numberOfEvents)
        Specifies how snapshots of the entity state should be made: Zero means use default from configuration file. Any negative value means never snapshot. Any positive value means snapshot at-or-after that number of events.

        It is strongly recommended to not disable snapshotting unless it is known that event sourced entity will never have more than 100 events (in which case the default will anyway not trigger any snapshots)

      • defaults

        static EventSourcedEntityOptions defaults()
        Create a default entity option for an event sourced entity.
        the entity option