Package akka.javasdk.annotations
Annotation Interface SnapshotHandler
A
Consumer or View can use this
annotation on a method to define that it accepts snapshots from the EventSourcedEntity source.
Using snapshots can be a performance improvement over consuming all events, especially for a new consumer or view when there is a long event history that must be processed to catch up to the latest state.
It can only be used together with {link Consume.FromEventSourcedEntity and for a
service-to-service consumer it is only defined on the producer side, which will transform the
snapshot to a public event. The consumer side will process the snapshot event like any other
event.