org.springframework.integration.dispatcher
Interface MessageDispatcher

All Superinterfaces:
MessageTarget
All Known Implementing Classes:
AbstractDispatcher, BroadcastingDispatcher, SimpleDispatcher

public interface MessageDispatcher
extends MessageTarget

Strategy interface for dispatching messages.

Author:
Mark Fisher

Method Summary
 boolean addTarget(MessageTarget target)
           
 boolean removeTarget(MessageTarget target)
           
 boolean send(Message<?> message)
           
 void setTimeout(long timeout)
          Specify the timeout for sending to a target (in milliseconds).
 

Method Detail

send

boolean send(Message<?> message)
Specified by:
send in interface MessageTarget

setTimeout

void setTimeout(long timeout)
Specify the timeout for sending to a target (in milliseconds). Note that this value will only be applicable for blocking targets. The default value is 0.


addTarget

boolean addTarget(MessageTarget target)

removeTarget

boolean removeTarget(MessageTarget target)