Interface Snapshotter

All Known Implementing Classes:
AbstractSnapshotter, AggregateSnapshotter, SpringAggregateSnapshotter

public interface Snapshotter
Interface describing instances that are capable of creating snapshot events for aggregates. Although snapshotting is typically an asynchronous process, implementations may to choose to create snapshots in the calling thread.
Since:
0.6
Author:
Allard Buijze
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    scheduleSnapshot(Class<?> aggregateType, String aggregateIdentifier)
    Schedules snapshot taking for an aggregate with given aggregateIdentifier.
  • Method Details

    • scheduleSnapshot

      void scheduleSnapshot(@Nonnull Class<?> aggregateType, @Nonnull String aggregateIdentifier)
      Schedules snapshot taking for an aggregate with given aggregateIdentifier. The implementation may choose to process this call synchronously (i.e. in the caller's thread), asynchronously, or ignore the call altogether.
      Parameters:
      aggregateType - the type of the aggregate to take the snapshot for
      aggregateIdentifier - The identifier of the aggregate to take the snapshot for