Package org.axonframework.modelling.saga
Interface SagaManagerSpanFactory
- All Known Implementing Classes:
DefaultSagaManagerSpanFactory
public interface SagaManagerSpanFactory
Span factory that creates spans for the
AbstractSagaManager. You can customize the spans of the bus by
creating your own implementation.- Since:
- 4.9.0
- Author:
- Mitchell Herrijgers
-
Method Summary
Modifier and TypeMethodDescriptioncreateCreateSagaInstanceSpan(EventMessage<?> event, Class<?> sagaType, String sagaIdentifier) Creates a span that represents the creation of a new saga instance.createInvokeSagaSpan(EventMessage<?> event, Class<?> sagaType, Saga<?> saga) Creates a span that represents the invocation of a saga.
-
Method Details
-
createCreateSagaInstanceSpan
Creates a span that represents the creation of a new saga instance.- Parameters:
event- The event that triggered the creation of the saga.sagaType- The type of the saga.sagaIdentifier- The identifier of the saga.- Returns:
- The created span.
-
createInvokeSagaSpan
Creates a span that represents the invocation of a saga.- Parameters:
event- The event that triggered the invocation of the saga.sagaType- The type of the saga.saga- The saga that will be invoked.- Returns:
- The created span.
-