Class AxonServerCommandBus.Builder

java.lang.Object
org.axonframework.axonserver.connector.command.AxonServerCommandBus.Builder
Enclosing class:
AxonServerCommandBus

public static class AxonServerCommandBus.Builder extends Object
Builder class to instantiate an AxonServerCommandBus.

The CommandPriorityCalculator is defaulted to

invalid @link
{@link CommandPriorityCalculator#defaultCommandPriorityCalculator(),
and the TargetContextResolver defaults to a lambda returning the AxonServerConfiguration.getContext() as the context. The ExecutorServiceBuilder defaults to ExecutorServiceBuilder.defaultCommandExecutorServiceBuilder(). The CommandBusSpanFactory defaults to a DefaultCommandBusSpanFactory backed by a NoOpSpanFactory. The AxonServerConnectionManager, the AxonServerConfiguration, the local CommandBus, Serializer and the RoutingStrategy are hard requirements and as such should be provided.