Uses of Interface
org.axonframework.eventsourcing.snapshot.api.SnapshotPolicy
Packages that use SnapshotPolicy
Package
Description
Part of the Axon Eventsourcing module.
Package for the sourcing handler API.
Public API for snapshotting of event-sourced entities.
-
Uses of SnapshotPolicy in org.axonframework.eventsourcing.configuration
Method parameters in org.axonframework.eventsourcing.configuration with type arguments of type SnapshotPolicyModifier and TypeMethodDescriptionEventSourcedEntityModule.OptionalPhase.snapshotPolicy(ComponentBuilder<SnapshotPolicy> snapshotPolicy) Registers an optionalComponentBuilderof aSnapshotPolicyfor the event-sourced entity being built. -
Uses of SnapshotPolicy in org.axonframework.eventsourcing.handler
Constructors in org.axonframework.eventsourcing.handler with parameters of type SnapshotPolicyModifierConstructorDescriptionSnapshottingSourcingHandler(EventStore eventStore, CriteriaResolver<I> criteriaResolver, MessageType messageType, SnapshotPolicy snapshotPolicy, Snapshotter<I, E> snapshotter) Creates a newSnapshottingSourcingHandler. -
Uses of SnapshotPolicy in org.axonframework.eventsourcing.snapshot.api
Methods in org.axonframework.eventsourcing.snapshot.api that return SnapshotPolicyModifier and TypeMethodDescriptionstatic SnapshotPolicySnapshotPolicy.afterEvents(int eventCount) Creates a policy that triggers a snapshot once more than the specified number of events have been applied since the last snapshot.default SnapshotPolicySnapshotPolicy.or(SnapshotPolicy other) Composes this policy with another policy using logical OR.static SnapshotPolicySnapshotPolicy.whenEventMatches(Predicate<EventMessage> predicate) Creates a policy that triggers a snapshot when the predicate matches an event encountered during sourcing.static SnapshotPolicySnapshotPolicy.whenSourcingTimeExceeds(Duration duration) Creates a policy that triggers a snapshot if the sourcing time of the entity exceeds the specified duration.Methods in org.axonframework.eventsourcing.snapshot.api with parameters of type SnapshotPolicyModifier and TypeMethodDescriptiondefault SnapshotPolicySnapshotPolicy.or(SnapshotPolicy other) Composes this policy with another policy using logical OR.