Package org.axonframework.messaging.core
Interface Distributed<MessageBus>
- Type Parameters:
MessageBus- the message bus which is distributed
public interface Distributed<MessageBus>
A contract towards being a distributed message bus implementation. The generic
T defines the type of message
bus which is distributed.- Since:
- 4.2.2
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionReturn the message bus of typeMessageBuswhich is regarded as the local segment for this implementation.
-
Method Details
-
localSegment
MessageBus localSegment()Return the message bus of typeMessageBuswhich is regarded as the local segment for this implementation. Would return the message bus used to dispatch and handle messages in a local environment to bridge the gap in a distributed set up.- Returns:
- a
MessageBuswhich is the local segment for this distributed message bus implementation
-