Package org.axonframework.eventsourcing
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 Summary
Modifier and TypeMethodDescriptioncreateCreateSnapshotSpan(String aggregateType, String aggregateIdentifier) Creates a newSpanthat represents the actual creation of a snapshot.createScheduleSnapshotSpan(String aggregateType, String aggregateIdentifier) Creates a newSpanthat represents the scheduling of snapshot creation to the snapshotter's executor.
-
Method Details
-
createScheduleSnapshotSpan
Creates a newSpanthat represents the scheduling of snapshot creation to the snapshotter's executor.- Parameters:
aggregateType- The aggregate's type.aggregateIdentifier- The aggregate's identifier.- Returns:
- A
Spanrepresenting the scheduling of snapshot creation.
-
createCreateSnapshotSpan
Creates a newSpanthat represents the actual creation of a snapshot. The creation of a snapshot might be done in a separate thread depending on the implementation of theSnapshotter.- Parameters:
aggregateType- The aggregate's type.aggregateIdentifier- The aggregate's identifier.- Returns:
- A
Spanrepresenting the creation of a snapshot.
-