public static class SimpleQueryUpdateEmitter.Builder extends Object
SimpleQueryUpdateEmitter
.
The MessageMonitor
is defaulted to a NoOpMessageMonitor
and the SpanFactory
defaults to 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(SpanFactory spanFactory)
Sets the
SpanFactory implementation to use for providing tracing capabilities. |
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 processedpublic SimpleQueryUpdateEmitter.Builder spanFactory(@Nonnull SpanFactory spanFactory)
SpanFactory
implementation to use for providing tracing capabilities. Defaults to a
NoOpSpanFactory
by default, which provides no tracing capabilities.spanFactory
- The SpanFactory
implementationpublic 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–2023. All rights reserved.