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 Summary
Modifier and TypeMethodDescriptionclear()
Remove allMessages
from this channel.int
Obtain the current number of queuedMessages
in this channel.int
Obtain the remaining capacity of this channel.purge
(MessageSelector selector) Remove anyMessages
that are not accepted by the provided selector.
-
Method Details
-
clear
Remove allMessages
from this channel.- Returns:
- The messages that were removed.
-
purge
Remove anyMessages
that are not accepted by the provided selector.- Parameters:
selector
- The message selector.- Returns:
- The list of messages that were purged.
-
getQueueSize
Obtain the current number of queuedMessages
in this channel.- Returns:
- The current number of queued
Messages
in this channel.
-
getRemainingCapacity
Obtain the remaining capacity of this channel.- Returns:
- The remaining capacity of this channel.
-