public class DefaultQueryUpdateEmitterSpanFactory extends Object implements QueryUpdateEmitterSpanFactory
QueryUpdateEmitterSpanFactory
.Modifier and Type | Class and Description |
---|---|
static class |
DefaultQueryUpdateEmitterSpanFactory.Builder
Builder class to instantiate a
DefaultQueryUpdateEmitterSpanFactory . |
Modifier | Constructor and Description |
---|---|
protected |
DefaultQueryUpdateEmitterSpanFactory(DefaultQueryUpdateEmitterSpanFactory.Builder builder)
Creates a new
DefaultQueryUpdateEmitterSpanFactory using the provided builder . |
Modifier and Type | Method and Description |
---|---|
static DefaultQueryUpdateEmitterSpanFactory.Builder |
builder()
Creates a Builder to be able to create a
DefaultQueryUpdateEmitterSpanFactory . |
Span |
createUpdateEmitSpan(SubscriptionQueryUpdateMessage<?> update)
Creates a span for the actual emit of a query update when the UnitOfWork commits (or immediately if no UnitOfWork
is active).
|
Span |
createUpdateScheduleEmitSpan(SubscriptionQueryUpdateMessage<?> update)
Creates a span for the scheduling of emitting a query update.
|
<T,M extends SubscriptionQueryUpdateMessage<T>> |
propagateContext(M update)
Propagates the context of the current span to the given update message.
|
protected DefaultQueryUpdateEmitterSpanFactory(DefaultQueryUpdateEmitterSpanFactory.Builder builder)
DefaultQueryUpdateEmitterSpanFactory
using the provided builder
.builder
- The builder to build the DefaultQueryUpdateEmitterSpanFactory
from.public static DefaultQueryUpdateEmitterSpanFactory.Builder builder()
DefaultQueryUpdateEmitterSpanFactory
.
The spanFactory
is a required field and should be provided.DefaultQueryUpdateEmitterSpanFactory
public Span createUpdateScheduleEmitSpan(SubscriptionQueryUpdateMessage<?> update)
QueryUpdateEmitterSpanFactory
createUpdateScheduleEmitSpan
in interface QueryUpdateEmitterSpanFactory
update
- The update to create a span for.public Span createUpdateEmitSpan(SubscriptionQueryUpdateMessage<?> update)
QueryUpdateEmitterSpanFactory
createUpdateEmitSpan
in interface QueryUpdateEmitterSpanFactory
update
- The update to create a span for.public <T,M extends SubscriptionQueryUpdateMessage<T>> M propagateContext(M update)
QueryUpdateEmitterSpanFactory
propagateContext
in interface QueryUpdateEmitterSpanFactory
T
- The type of the payload of the update message.M
- The type of the update message.update
- The update message to propagate the context to.Copyright © 2010–2024. All rights reserved.