@CanIgnoreReturnValue public static class CommandBus.Builder extends BusBuilder<CommandBus.Builder,io.spine.core.Command,CommandEnvelope,CommandClass,CommandDispatcher>
Builder
for CommandBus
.BusBuilder.FieldCheck
Modifier and Type | Method and Description |
---|---|
CommandBus |
build()
Builds an instance of
CommandBus . |
protected io.spine.server.commandbus.CommandDispatcherRegistry |
newRegistry() |
protected CommandBus.Builder |
self()
Returns
this reference to avoid redundant casts. |
addListener, appendFilter, checkFieldsSet, context, filters, listeners, removeListener
protected io.spine.server.commandbus.CommandDispatcherRegistry newRegistry()
newRegistry
in class BusBuilder<CommandBus.Builder,io.spine.core.Command,CommandEnvelope,CommandClass,CommandDispatcher>
@CheckReturnValue public CommandBus build()
CommandBus
.
This method is supposed to be called internally when building an enclosing
BoundedContext
.
build
in class BusBuilder<CommandBus.Builder,io.spine.core.Command,CommandEnvelope,CommandClass,CommandDispatcher>
@CheckReturnValue protected CommandBus.Builder self()
BusBuilder
this
reference to avoid redundant casts.self
in class BusBuilder<CommandBus.Builder,io.spine.core.Command,CommandEnvelope,CommandClass,CommandDispatcher>