public class DefaultDeadlineManagerSpanFactory extends Object implements DeadlineManagerSpanFactory
DeadlineManagerSpanFactory
. The attributes used for the id of the deadline and
the scope of the deadline are configurable.Modifier and Type | Class and Description |
---|---|
static class |
DefaultDeadlineManagerSpanFactory.Builder
Builder class to instantiate a
DefaultDeadlineManagerSpanFactory . |
Modifier | Constructor and Description |
---|---|
protected |
DefaultDeadlineManagerSpanFactory(DefaultDeadlineManagerSpanFactory.Builder builder)
Creates a new
DefaultDeadlineManagerSpanFactory using the provided builder . |
Modifier and Type | Method and Description |
---|---|
static DefaultDeadlineManagerSpanFactory.Builder |
builder()
Creates a new
DefaultDeadlineManagerSpanFactory.Builder to build a DefaultDeadlineManagerSpanFactory with. |
Span |
createCancelAllSpan(String deadlineName)
Creates a span that represents the cancellation of all deadlines with a certain name.
|
Span |
createCancelAllWithinScopeSpan(String deadlineName,
ScopeDescriptor scopeDescriptor)
Creates a span that represents the cancellation of all deadlines with a certain name within a certain scope.
|
Span |
createCancelScheduleSpan(String deadlineName,
String deadlineId)
Creates a span that represents the cancellation of a specific deadline.
|
Span |
createExecuteSpan(String deadlineName,
String deadlineId,
DeadlineMessage<?> deadlineMessage)
Creates a span that represents the execution of a deadline.
|
Span |
createScheduleSpan(String deadlineName,
String deadlineId,
DeadlineMessage<?> deadlineMessage)
Creates a span that represents the scheduling of a deadline.
|
<T> DeadlineMessage<T> |
propagateContext(DeadlineMessage<T> eventMessage)
Propagates the context of the current span to the given deadline message.
|
protected DefaultDeadlineManagerSpanFactory(DefaultDeadlineManagerSpanFactory.Builder builder)
DefaultDeadlineManagerSpanFactory
using the provided builder
. The default values are:
deadlineIdAttribute
defaults to axon.deadlineId
scopeAttribute
defaults to axon.deadlineScope
spanFactory
is a required field and should be provided.builder
- The builder to build the DefaultDeadlineManagerSpanFactory
from.public static DefaultDeadlineManagerSpanFactory.Builder builder()
DefaultDeadlineManagerSpanFactory.Builder
to build a DefaultDeadlineManagerSpanFactory
with. The default values are:
deadlineIdAttribute
defaults to axon.deadlineId
scopeAttribute
defaults to axon.deadlineScope
spanFactory
is a required field and should be provided.DefaultDeadlineManagerSpanFactory.Builder
to build a DefaultDeadlineManagerSpanFactory
with.public Span createScheduleSpan(String deadlineName, String deadlineId, DeadlineMessage<?> deadlineMessage)
DeadlineManagerSpanFactory
createScheduleSpan
in interface DeadlineManagerSpanFactory
deadlineName
- The name of the deadline.deadlineId
- The id of the deadline.deadlineMessage
- The message of the deadline.public Span createCancelScheduleSpan(String deadlineName, String deadlineId)
DeadlineManagerSpanFactory
createCancelScheduleSpan
in interface DeadlineManagerSpanFactory
deadlineName
- The name of the deadline.deadlineId
- The id of the deadline.public Span createCancelAllSpan(String deadlineName)
DeadlineManagerSpanFactory
createCancelAllSpan
in interface DeadlineManagerSpanFactory
deadlineName
- The name of the deadlines.public Span createCancelAllWithinScopeSpan(String deadlineName, ScopeDescriptor scopeDescriptor)
DeadlineManagerSpanFactory
createCancelAllWithinScopeSpan
in interface DeadlineManagerSpanFactory
deadlineName
- The name of the deadlines.scopeDescriptor
- The scope descriptor of the deadlines.public Span createExecuteSpan(String deadlineName, String deadlineId, DeadlineMessage<?> deadlineMessage)
DeadlineManagerSpanFactory
createExecuteSpan
in interface DeadlineManagerSpanFactory
deadlineName
- The name of the deadline.deadlineId
- The id of the deadline.deadlineMessage
- The message of the deadline.public <T> DeadlineMessage<T> propagateContext(DeadlineMessage<T> eventMessage)
DeadlineManagerSpanFactory
propagateContext
in interface DeadlineManagerSpanFactory
T
- The type of the payload of the deadline message.eventMessage
- The deadline message to propagate the context to.Copyright © 2010–2024. All rights reserved.