This class implements the routing for all messages leaving a node. Please note: This object is meant to be instantiated and manipulated by the {@link Dempsy} orchestrator and not used directly. However, it is important to understand how routing within Dempsy works.
Routing a message to a message processor happens in three stages. Given an {@link ApplicationDefinition} that contains many message processor clusters, messages leaving any one {@link Node} need to be routed to the appropriate message processorsin other clusters. The stages are as follows:
As mentioned, if the particular cluster that the node that this Router is instantiated in has explicitly defined destinations, then the message routing will be limited to only those destinations.
A router requires a non-null ApplicationDefinition during construction.
|
|