Interface QueueChannelOperations
- All Known Implementing Classes:
- PriorityChannel,- QueueChannel,- RendezvousChannel
public interface QueueChannelOperations
Operations available on a channel that has queuing semantics.
- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan
- 
Method SummaryModifier and TypeMethodDescriptionclear()Remove allMessagesfrom this channel.intObtain the current number of queuedMessagesin this channel.intObtain the remaining capacity of this channel.purge(MessageSelector selector) Remove anyMessagesthat are not accepted by the provided selector.
- 
Method Details- 
clear
- 
purgeRemove anyMessagesthat are not accepted by the provided selector.- Parameters:
- selector- The message selector.
- Returns:
- The list of messages that were purged.
 
- 
getQueueSize
- 
getRemainingCapacityObtain the remaining capacity of this channel.- Returns:
- The remaining capacity of this channel.
 
 
-