org.springframework.integration.channel
Interface PollableChannel

All Superinterfaces:
BlockingSource, BlockingTarget, MessageChannel, MessageSource, MessageTarget, PollableSource
All Known Implementing Classes:
AbstractPollableChannel, DefaultErrorChannel, PriorityChannel, QueueChannel, RendezvousChannel, ThreadLocalChannel

public interface PollableChannel
extends MessageChannel, BlockingSource

Author:
Mark Fisher

Method Summary
 java.util.List<Message<?>> clear()
          Remove all Messages from this channel.
 java.util.List<Message<?>> purge(MessageSelector selector)
          Remove any Messages that are not accepted by the provided selector.
 
Methods inherited from interface org.springframework.integration.channel.MessageChannel
getName
 
Methods inherited from interface org.springframework.integration.message.BlockingTarget
send, send
 
Methods inherited from interface org.springframework.integration.message.BlockingSource
receive, receive
 

Method Detail

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.