public class DefaultSagaManagerSpanFactory extends Object implements SagaManagerSpanFactory
SagaManagerSpanFactory. The attribute used for the saga identifier can be
configured.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSagaManagerSpanFactory.Builder
Builder class to instantiate a
DefaultSagaManagerSpanFactory. |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultSagaManagerSpanFactory(DefaultSagaManagerSpanFactory.Builder builder)
Creates a new
DefaultSagaManagerSpanFactory using the provided builder. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultSagaManagerSpanFactory.Builder |
builder()
Creates a new
DefaultSagaManagerSpanFactory.Builder to build a DefaultSagaManagerSpanFactory with. |
Span |
createCreateSagaInstanceSpan(EventMessage<?> event,
Class<?> sagaType,
String sagaIdentifier)
Creates a span that represents the creation of a new saga instance.
|
Span |
createInvokeSagaSpan(EventMessage<?> event,
Class<?> sagaType,
Saga<?> saga)
Creates a span that represents the invocation of a saga.
|
protected DefaultSagaManagerSpanFactory(DefaultSagaManagerSpanFactory.Builder builder)
DefaultSagaManagerSpanFactory using the provided builder.builder - The builder to build the DefaultSagaManagerSpanFactory from.public static DefaultSagaManagerSpanFactory.Builder builder()
DefaultSagaManagerSpanFactory.Builder to build a DefaultSagaManagerSpanFactory with. The default values are:
sagaIdentifierAttribute defaults to axon.sagaIdentifierspanFactory is a required field and should be provided.DefaultSagaManagerSpanFactory.Builder to build a DefaultSagaManagerSpanFactory with.public Span createCreateSagaInstanceSpan(EventMessage<?> event, Class<?> sagaType, String sagaIdentifier)
SagaManagerSpanFactorycreateCreateSagaInstanceSpan in interface SagaManagerSpanFactoryevent - The event that triggered the creation of the saga.sagaType - The type of the saga.sagaIdentifier - The identifier of the saga.public Span createInvokeSagaSpan(EventMessage<?> event, Class<?> sagaType, Saga<?> saga)
SagaManagerSpanFactorycreateInvokeSagaSpan in interface SagaManagerSpanFactoryevent - The event that triggered the invocation of the saga.sagaType - The type of the saga.saga - The saga that will be invoked.Copyright © 2010–2025. All rights reserved.