org.jacorb.notification.queue
Interface MessageQueueAdapter

All Known Implementing Classes:
DefaultMessageQueueAdapter, RWLockEventQueueDecorator

public interface MessageQueueAdapter

Version:
$Id: MessageQueueAdapter.java,v 1.4 2011-05-10 15:40:39 nick.cross Exp $
Author:
Alphonse Bendt

Method Summary
 void addDiscardListener(MessageQueue.DiscardListener listener)
           
 void clear()
           
 void enqeue(Message message)
           
 Message[] getAllMessages()
           
 Message[] getAtLeastMessages(int min)
           
 String getDiscardPolicyName()
           
 Message getMessageBlocking()
           
 Message getMessageNoBlock()
           
 String getOrderPolicyName()
           
 int getPendingMessagesCount()
           
 Message[] getUpToMessages(int max)
           
 boolean hasPendingMessages()
           
 void removeDiscardListener(MessageQueue.DiscardListener listener)
           
 

Method Detail

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 © 2012 JacORB. All Rights Reserved.