public class DefaultRepositorySpanFactory extends Object implements RepositorySpanFactory
RepositorySpanFactory. The attribute used for the identifier of the aggregate
can be configured.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultRepositorySpanFactory.Builder
Builder class to instantiate a
DefaultRepositorySpanFactory. |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultRepositorySpanFactory(DefaultRepositorySpanFactory.Builder builder)
Creates a new
DefaultRepositorySpanFactory using the provided builder. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultRepositorySpanFactory.Builder |
builder()
Creates a new
DefaultRepositorySpanFactory.Builder to build a DefaultRepositorySpanFactory with. |
Span |
createInitializeStateSpan(String aggregateType,
String aggregateId)
Creates a span that represents the time it took to hydrate the aggregate with data from, for example, the event
store.
|
Span |
createLoadSpan(String aggregateId)
Creates a span that represents the loading of an aggregate with the provided identifier.
|
Span |
createObtainLockSpan(String aggregateId)
Creates a span that represents the time waiting to acquire a lock on an aggregate with the provided identifier.
|
protected DefaultRepositorySpanFactory(DefaultRepositorySpanFactory.Builder builder)
DefaultRepositorySpanFactory using the provided builder.builder - The builder to build the DefaultRepositorySpanFactory from.public static DefaultRepositorySpanFactory.Builder builder()
DefaultRepositorySpanFactory.Builder to build a DefaultRepositorySpanFactory with. The default values are:
aggregateIdAttribute defaults to axon.aggregateIdspanFactory is a required field and should be provided.DefaultRepositorySpanFactory.Builder to build a DefaultRepositorySpanFactory with.public Span createLoadSpan(String aggregateId)
RepositorySpanFactorycreateLoadSpan in interface RepositorySpanFactoryaggregateId - The identifier of the aggregate that is being loaded.public Span createObtainLockSpan(String aggregateId)
RepositorySpanFactorycreateObtainLockSpan in interface RepositorySpanFactoryaggregateId - The identifier of the aggregate that is trying to acquire a lock.public Span createInitializeStateSpan(String aggregateType, String aggregateId)
RepositorySpanFactorycreateInitializeStateSpan in interface RepositorySpanFactoryaggregateType - The type of the aggregate that is being hydrated.aggregateId - The identifier of the aggregate that is being hydrated.Copyright © 2010–2025. All rights reserved.