Implementation of MessageDispatcher that will attempt to send a
Message to at most one of its handlers. The handlers will be tried
as determined by the LoadBalancingStrategy if one is configured. As
soon as one of the handlers accepts the Message, the dispatcher will
return true and ignore the rest of its handlers.
If the dispatcher has no handlers, a MessageDeliveryException will be
thrown. If all handlers throw Exceptions, the dispatcher will throw an
AggregateMessageDeliveryException.
A load-balancing strategy may be provided to this class to control the order in
which the handlers will be tried.
Since:
1.0.2
Field Summary
Fields inherited from class org.springframework.integration.dispatcher.AbstractDispatcher