Spring Integration

org.springframework.integration.core
Interface SubscribableChannel

All Superinterfaces:
MessageChannel
All Known Implementing Classes:
AbstractSubscribableChannel, DirectChannel, ExecutorChannel, JmsDestinationBackedMessageChannel, PublishSubscribeChannel

public interface SubscribableChannel
extends MessageChannel

Interface for any MessageChannel implementation that accepts subscribers. The subscribers must implement the MessageHandler interface and will be invoked when a Message is available.

Author:
Mark Fisher

Method Summary
 boolean subscribe(MessageHandler handler)
          Register a MessageHandler as a subscriber to this channel.
 boolean unsubscribe(MessageHandler handler)
          Remove a MessageHandler from the subscribers of this channel.
 
Methods inherited from interface org.springframework.integration.MessageChannel
send, send
 

Method Detail

subscribe

boolean subscribe(MessageHandler handler)
Register a MessageHandler as a subscriber to this channel.


unsubscribe

boolean unsubscribe(MessageHandler handler)
Remove a MessageHandler from the subscribers of this channel.


Spring Integration

Copyright © 2010. All Rights Reserved.