org.springframework.integration.dispatcher
Class SimpleDispatcher
java.lang.Object
org.springframework.integration.dispatcher.AbstractDispatcher
org.springframework.integration.dispatcher.SimpleDispatcher
- All Implemented Interfaces:
- MessageDispatcher
public class SimpleDispatcher
- extends AbstractDispatcher
Basic implementation of MessageDispatcher
that will attempt
to send a Message
to one of its handlers. As soon as one
of the handlers accepts the Message, the dispatcher will return 'true'.
If the dispatcher has no handlers, a MessageDeliveryException
will be thrown. If all handlers reject the Message, the dispatcher will
throw a MessageRejectedException.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleDispatcher
public SimpleDispatcher()
dispatch
public boolean dispatch(Message<?> message)