org.springframework.integration.dispatcher
Class BroadcastingDispatcher

java.lang.Object
  extended by org.springframework.integration.dispatcher.AbstractDispatcher
      extended by org.springframework.integration.dispatcher.BroadcastingDispatcher
All Implemented Interfaces:
MessageDispatcher

public class BroadcastingDispatcher
extends AbstractDispatcher

A broadcasting dispatcher implementation. It makes a best effort to send the message to each of its handlers. If it fails to send to any one handler, it will log a warn-level message but continue to send to the other handlers.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.dispatcher.AbstractDispatcher
handlers, logger
 
Constructor Summary
BroadcastingDispatcher()
           
 
Method Summary
 boolean dispatch(Message<?> message)
           
 void setApplySequence(boolean applySequence)
          Specify whether to apply sequence numbers to the messages prior to sending to the handlers.
 
Methods inherited from class org.springframework.integration.dispatcher.AbstractDispatcher
addHandler, getTaskExecutor, removeHandler, sendMessageToHandler, setTaskExecutor, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BroadcastingDispatcher

public BroadcastingDispatcher()
Method Detail

setApplySequence

public void setApplySequence(boolean applySequence)
Specify whether to apply sequence numbers to the messages prior to sending to the handlers. By default, sequence numbers will not be applied


dispatch

public boolean dispatch(Message<?> message)