Interface SnapshotterSpanFactory

All Known Implementing Classes:
DefaultSnapshotterSpanFactory

public interface SnapshotterSpanFactory
Span factory that creates spans for the Snapshotter. You can customize the spans of the snapshotter by creating your own implementation.
Since:
4.9.0
Author:
Mitchell Herrijgers
  • Method Details

    • createScheduleSnapshotSpan

      Span createScheduleSnapshotSpan(String aggregateType, String aggregateIdentifier)
      Creates a new Span that represents the scheduling of snapshot creation to the snapshotter's executor.
      Parameters:
      aggregateType - The aggregate's type.
      aggregateIdentifier - The aggregate's identifier.
      Returns:
      A Span representing the scheduling of snapshot creation.
    • createCreateSnapshotSpan

      Span createCreateSnapshotSpan(String aggregateType, String aggregateIdentifier)
      Creates a new Span that represents the actual creation of a snapshot. The creation of a snapshot might be done in a separate thread depending on the implementation of the Snapshotter.
      Parameters:
      aggregateType - The aggregate's type.
      aggregateIdentifier - The aggregate's identifier.
      Returns:
      A Span representing the creation of a snapshot.