org.springframework.integration.message
Interface SubscribableSource

All Superinterfaces:
MessageSource
All Known Subinterfaces:
MessageDispatcher
All Known Implementing Classes:
AbstractDispatcher, BroadcastingDispatcher, DirectChannel, PollingDispatcher, PublishSubscribeChannel, SimpleDispatcher, SubscribableMailSource

public interface SubscribableSource
extends MessageSource

Interface for any source of messages that accepts subscribers.

Author:
Mark Fisher

Method Summary
 boolean subscribe(MessageTarget target)
          Register a MessageTarget as a subscriber to this source.
 boolean unsubscribe(MessageTarget target)
          Remove a MessageTarget from the subscribers of this source.
 

Method Detail

subscribe

boolean subscribe(MessageTarget target)
Register a MessageTarget as a subscriber to this source.


unsubscribe

boolean unsubscribe(MessageTarget target)
Remove a MessageTarget from the subscribers of this source.