public static class SimpleQueryUpdateEmitter.Builder extends Object
SimpleQueryUpdateEmitter
.
The MessageMonitor
is defaulted to a NoOpMessageMonitor
and the QueryBusSpanFactory
defaults to a DefaultQueryBusSpanFactory
backed by a NoOpSpanFactory
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SimpleQueryUpdateEmitter |
build()
Initializes a
SimpleQueryUpdateEmitter as specified through this Builder. |
SimpleQueryUpdateEmitter.Builder |
spanFactory(QueryUpdateEmitterSpanFactory spanFactory)
Sets the
QueryUpdateEmitterSpanFactory implementation to use for providing tracing capabilities. |
SimpleQueryUpdateEmitter.Builder |
spanFactory(SpanFactory spanFactory)
Deprecated.
Use
spanFactory(QueryUpdateEmitterSpanFactory) instead as it provides more configurability. |
SimpleQueryUpdateEmitter.Builder |
updateMessageMonitor(MessageMonitor<? super SubscriptionQueryUpdateMessage<?>> updateMessageMonitor)
Sets the
MessageMonitor used to monitor SubscriptionQueryUpdateMessage s being processed. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public SimpleQueryUpdateEmitter.Builder updateMessageMonitor(@Nonnull MessageMonitor<? super SubscriptionQueryUpdateMessage<?>> updateMessageMonitor)
MessageMonitor
used to monitor SubscriptionQueryUpdateMessage
s being processed.
Defaults to a NoOpMessageMonitor
.updateMessageMonitor
- the MessageMonitor
used to monitor
SubscriptionQueryUpdateMessage
s being processed@Deprecated public SimpleQueryUpdateEmitter.Builder spanFactory(@Nonnull SpanFactory spanFactory)
spanFactory(QueryUpdateEmitterSpanFactory)
instead as it provides more configurability.SpanFactory
implementation to use for providing tracing capabilities. Defaults to a
NoOpSpanFactory
by default, which provides no tracing capabilities.spanFactory
- The SpanFactory
implementation.public SimpleQueryUpdateEmitter.Builder spanFactory(@Nonnull QueryUpdateEmitterSpanFactory spanFactory)
QueryUpdateEmitterSpanFactory
implementation to use for providing tracing capabilities. Defaults to a
DefaultQueryUpdateEmitterSpanFactory
backed by a NoOpSpanFactory
by default, which provides no tracing capabilities.spanFactory
- The QueryUpdateEmitterSpanFactory
implementation.public SimpleQueryUpdateEmitter build()
SimpleQueryUpdateEmitter
as specified through this Builder.SimpleQueryUpdateEmitter
as specified through this Builderprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2024. All rights reserved.