public static class SimpleEventBus.Builder extends AbstractEventBus.Builder
SimpleEventBus.
The MessageMonitor is defaulted to a NoOpMessageMonitor.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SimpleEventBus |
build()
Initializes a
SimpleEventBus as specified through this Builder. |
SimpleEventBus.Builder |
messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor ingested EventMessages. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public SimpleEventBus.Builder messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
AbstractEventBus.BuildermessageMonitor in class AbstractEventBus.BuildermessageMonitor - a MessageMonitor to monitor ingested EventMessagespublic SimpleEventBus build()
SimpleEventBus as specified through this Builder.SimpleEventBus as specified through this Builderprotected void validate()
throws AxonConfigurationException
validate in class AbstractEventBus.BuilderAxonConfigurationException - if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2018. All rights reserved.