Class AsynchronousCommandBus.Builder

java.lang.Object
org.axonframework.commandhandling.SimpleCommandBus.Builder
org.axonframework.commandhandling.AsynchronousCommandBus.Builder
Enclosing class:
AsynchronousCommandBus

public static class AsynchronousCommandBus.Builder extends SimpleCommandBus.Builder
Builder class to instantiate a AsynchronousCommandBus.

The TransactionManager, MessageMonitor, RollbackConfiguration, DuplicateCommandHandlerResolver, CommandBusSpanFactory to a DefaultCommandBusSpanFactory backed by a NoOpSpanFactory, and Executor are respectively defaulted to a NoTransactionManager, a NoOpMessageMonitor, a RollbackConfigurationType.UNCHECKED_EXCEPTIONS, a DuplicateCommandHandlerResolution.logAndOverride(), NoOpSpanFactory and a Executors.newCachedThreadPool(). The default executor uses an AxonThreadFactory to create threads with a sensible naming scheme. The TransactionManager, MessageMonitor, RollbackConfiguration and Executor are hard requirements. Thus setting them to null will result in an AxonConfigurationException.