Class SameNodeIdRoutingStrategy

java.lang.Object
dev.getelements.elements.rt.routing.SameNodeIdRoutingStrategy
All Implemented Interfaces:
RoutingStrategy

public class SameNodeIdRoutingStrategy extends Object implements RoutingStrategy
A RoutingStrategy which ensures that accepts all address components are instances of HasNodeId and that all NodeId instances point to the same place. Instances of HasNodeId which do not specify the NodeId will be ignored and the call dispatched to the specific NodeId that it determines or an exception will be thrown otherwise. If no NodeIds can be determined from the address, then an exception is thrown. However, this will ensure that the call will be routed to a specific node with the determined NodeId.