org.jacorb.notification.queue
Class DefaultMessageQueueAdapter
java.lang.Object
org.jacorb.notification.queue.DefaultMessageQueueAdapter
- All Implemented Interfaces:
- MessageQueueAdapter
public class DefaultMessageQueueAdapter
- extends Object
- implements MessageQueueAdapter
- Author:
- Alphonse Bendt
DefaultMessageQueueAdapter
public DefaultMessageQueueAdapter(MessageQueue queue)
enqeue
public void enqeue(Message message)
- Specified by:
enqeue in interface MessageQueueAdapter
hasPendingMessages
public boolean hasPendingMessages()
- Specified by:
hasPendingMessages in interface MessageQueueAdapter
getPendingMessagesCount
public int getPendingMessagesCount()
- Specified by:
getPendingMessagesCount in interface MessageQueueAdapter
getMessageBlocking
public Message getMessageBlocking()
throws InterruptedException
- Specified by:
getMessageBlocking in interface MessageQueueAdapter
- Throws:
InterruptedException
getMessageNoBlock
public Message getMessageNoBlock()
throws InterruptedException
- Specified by:
getMessageNoBlock in interface MessageQueueAdapter
- Throws:
InterruptedException
getAllMessages
public Message[] getAllMessages()
throws InterruptedException
- Specified by:
getAllMessages in interface MessageQueueAdapter
- Throws:
InterruptedException
getUpToMessages
public Message[] getUpToMessages(int max)
throws InterruptedException
- Specified by:
getUpToMessages in interface MessageQueueAdapter
- Throws:
InterruptedException
getAtLeastMessages
public Message[] getAtLeastMessages(int min)
throws InterruptedException
- Specified by:
getAtLeastMessages in interface MessageQueueAdapter
- Throws:
InterruptedException
clear
public void clear()
- Specified by:
clear in interface MessageQueueAdapter
toString
public String toString()
- Overrides:
toString in class Object
getDiscardPolicyName
public String getDiscardPolicyName()
- Specified by:
getDiscardPolicyName in interface MessageQueueAdapter
getOrderPolicyName
public String getOrderPolicyName()
- Specified by:
getOrderPolicyName in interface MessageQueueAdapter
addDiscardListener
public void addDiscardListener(MessageQueue.DiscardListener listener)
- Specified by:
addDiscardListener in interface MessageQueueAdapter
removeDiscardListener
public void removeDiscardListener(MessageQueue.DiscardListener listener)
- Specified by:
removeDiscardListener in interface MessageQueueAdapter
Copyright © 2015 JacORB. All rights reserved.