org.jacorb.notification.queue
Interface MessageQueueAdapter
- All Known Implementing Classes:
- DefaultMessageQueueAdapter, RWLockEventQueueDecorator
public interface MessageQueueAdapter
- Author:
- Alphonse Bendt
addDiscardListener
void addDiscardListener(MessageQueue.DiscardListener listener)
removeDiscardListener
void removeDiscardListener(MessageQueue.DiscardListener listener)
enqeue
void enqeue(Message message)
throws InterruptedException
- Throws:
InterruptedException
hasPendingMessages
boolean hasPendingMessages()
throws InterruptedException
- Throws:
InterruptedException
getPendingMessagesCount
int getPendingMessagesCount()
throws InterruptedException
- Throws:
InterruptedException
getMessageBlocking
Message getMessageBlocking()
throws InterruptedException
- Throws:
InterruptedException
getMessageNoBlock
Message getMessageNoBlock()
throws InterruptedException
- Throws:
InterruptedException
getAllMessages
Message[] getAllMessages()
throws InterruptedException
- Throws:
InterruptedException
getUpToMessages
Message[] getUpToMessages(int max)
throws InterruptedException
- Throws:
InterruptedException
getAtLeastMessages
Message[] getAtLeastMessages(int min)
throws InterruptedException
- Throws:
InterruptedException
clear
void clear()
getDiscardPolicyName
String getDiscardPolicyName()
getOrderPolicyName
String getOrderPolicyName()
Copyright © 2015 JacORB. All rights reserved.