Package | Description |
---|---|
org.axonframework.commandhandling.distributed |
Modifier and Type | Method and Description |
---|---|
static DistributedCommandBus.Builder |
DistributedCommandBus.builder()
Instantiate a Builder to be able to create a
DistributedCommandBus . |
DistributedCommandBus.Builder |
DistributedCommandBus.Builder.commandRouter(CommandRouter commandRouter)
Sets the
CommandRouter used to determine the target node for each dispatched command. |
DistributedCommandBus.Builder |
DistributedCommandBus.Builder.connector(CommandBusConnector connector)
Sets the
CommandBusConnector which performs the actual transport of the message to the destination
node. |
DistributedCommandBus.Builder |
DistributedCommandBus.Builder.defaultCommandCallback(CommandCallback<Object,Object> defaultCommandCallback)
Sets the callback to use when commands are dispatched in a "fire and forget" method, such as
DistributedCommandBus.dispatch(CommandMessage) . |
DistributedCommandBus.Builder |
DistributedCommandBus.Builder.messageMonitor(MessageMonitor<? super CommandMessage<?>> messageMonitor)
Sets the
MessageMonitor for generic types implementing CommandMessage , which is used to
monitor incoming messages and their execution result. |
DistributedCommandBus.Builder |
DistributedCommandBus.Builder.spanFactory(CommandBusSpanFactory spanFactory)
Sets the
CommandBusSpanFactory implementation to use for providing tracing capabilities. |
DistributedCommandBus.Builder |
DistributedCommandBus.Builder.spanFactory(SpanFactory spanFactory)
Deprecated.
Use
spanFactory(CommandBusSpanFactory) instead as it provides more configurability. |
Constructor and Description |
---|
DistributedCommandBus(DistributedCommandBus.Builder builder)
Instantiate a
DistributedCommandBus based on the fields contained in the DistributedCommandBus.Builder . |
Copyright © 2010–2024. All rights reserved.