Class DistributedCommandBus

java.lang.Object
org.axonframework.commandhandling.distributed.DistributedCommandBus
All Implemented Interfaces:
CommandBus, Lifecycle, Distributed<CommandBus>, MessageDispatchInterceptorSupport<CommandMessage<?>>, MessageHandlerInterceptorSupport<CommandMessage<?>>

public class DistributedCommandBus extends Object implements CommandBus, Distributed<CommandBus>, Lifecycle
Implementation of a CommandBus that is aware of multiple instances of a CommandBus working together to spread load. Each "physical" CommandBus instance is considered a "segment" of a conceptual distributed CommandBus.

The DistributedCommandBus relies on a CommandBusConnector to dispatch commands and replies to different segments of the CommandBus. Depending on the implementation used, each segment may run in a different JVM.

Since:
2.0
Author:
Allard Buijze