public interface DeadlineManagerSpanFactory
DeadlineManager
. You can customize the spans of the bus by creating
your own implementation.Modifier and Type | Method and Description |
---|---|
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> deadlineMessage)
Propagates the context of the current span to the given deadline message.
|
Span createScheduleSpan(String deadlineName, String deadlineId, DeadlineMessage<?> deadlineMessage)
deadlineName
- The name of the deadline.deadlineId
- The id of the deadline.deadlineMessage
- The message of the deadline.Span createCancelScheduleSpan(String deadlineName, String deadlineId)
deadlineName
- The name of the deadline.deadlineId
- The id of the deadline.Span createCancelAllSpan(String deadlineName)
deadlineName
- The name of the deadlines.Span createCancelAllWithinScopeSpan(String deadlineName, ScopeDescriptor scopeDescriptor)
deadlineName
- The name of the deadlines.scopeDescriptor
- The scope descriptor of the deadlines.Span createExecuteSpan(String deadlineName, String deadlineId, DeadlineMessage<?> deadlineMessage)
deadlineName
- The name of the deadline.deadlineId
- The id of the deadline.deadlineMessage
- The message of the deadline.<T> DeadlineMessage<T> propagateContext(DeadlineMessage<T> deadlineMessage)
T
- The type of the payload of the deadline message.deadlineMessage
- The deadline message to propagate the context to.Copyright © 2010–2024. All rights reserved.