com.caucho.jms.connection
Class MessageBrowserImpl

java.lang.Object
  extended by com.caucho.jms.connection.MessageBrowserImpl
All Implemented Interfaces:
QueueBrowser

public class MessageBrowserImpl
extends java.lang.Object
implements QueueBrowser

A basic message consumer.


Nested Class Summary
static class MessageBrowserImpl.BrowserEnumeration
           
 
Constructor Summary
MessageBrowserImpl(JmsSession session, AbstractQueue queue, java.lang.String messageSelector)
           
 
Method Summary
 void close()
           
 java.util.Enumeration getEnumeration()
           
 java.lang.String getMessageSelector()
           
 Queue getQueue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageBrowserImpl

public MessageBrowserImpl(JmsSession session,
                          AbstractQueue queue,
                          java.lang.String messageSelector)
                   throws JMSException
Throws:
JMSException
Method Detail

getQueue

public Queue getQueue()
               throws JMSException
Specified by:
getQueue in interface QueueBrowser
Throws:
JMSException

getMessageSelector

public java.lang.String getMessageSelector()
                                    throws JMSException
Specified by:
getMessageSelector in interface QueueBrowser
Throws:
JMSException

getEnumeration

public java.util.Enumeration getEnumeration()
                                     throws JMSException
Specified by:
getEnumeration in interface QueueBrowser
Throws:
JMSException

close

public void close()
           throws JMSException
Specified by:
close in interface QueueBrowser
Throws:
JMSException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object