org.springframework.integration.channel
Interface MessageChannel

All Superinterfaces:
BlockingSource, BlockingTarget, Source, Target
All Known Implementing Classes:
AbstractMessageChannel, DefaultErrorChannel, DirectChannel, PriorityChannel, QueueChannel, RendezvousChannel, RequestReplyTemplate.ReplyHandlingChannelAdapter, ThreadLocalChannel

public interface MessageChannel
extends BlockingSource, BlockingTarget

Base channel interface defining common behavior for message sending and receiving.

Author:
Mark Fisher

Method Summary
 java.util.List<Message<?>> clear()
          Remove all Messages from this channel.
 DispatcherPolicy getDispatcherPolicy()
          Return this channel's dispatcher policy
 java.lang.String getName()
          Return the name of this channel.
 java.util.List<Message<?>> purge(MessageSelector selector)
          Remove any Messages that are not accepted by the provided selector.
 void setName(java.lang.String name)
          Set the name of this channel.
 
Methods inherited from interface org.springframework.integration.message.BlockingSource
receive, receive
 
Methods inherited from interface org.springframework.integration.message.BlockingTarget
send, send
 

Method Detail

getName

java.lang.String getName()
Return the name of this channel.


setName

void setName(java.lang.String name)
Set the name of this channel.


getDispatcherPolicy

DispatcherPolicy getDispatcherPolicy()
Return this channel's dispatcher policy


clear

java.util.List<Message<?>> clear()
Remove all Messages from this channel.


purge

java.util.List<Message<?>> purge(MessageSelector selector)
Remove any Messages that are not accepted by the provided selector.