com.mockrunner.mock.jms
Class MockQueueBrowser
java.lang.Object
com.mockrunner.mock.jms.MockQueueBrowser
- All Implemented Interfaces:
- java.io.Serializable, javax.jms.QueueBrowser
public class MockQueueBrowser
- extends java.lang.Object
- implements javax.jms.QueueBrowser, java.io.Serializable
Mock implementation of JMS QueueBrowser
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockQueueBrowser
public MockQueueBrowser(MockConnection connection,
MockQueue queue)
MockQueueBrowser
public MockQueueBrowser(MockConnection connection,
MockQueue queue,
java.lang.String messageSelector)
isClosed
public boolean isClosed()
- Returns if this browser was closed.
- Returns:
true
if this browser is closed
getQueue
public javax.jms.Queue getQueue()
throws javax.jms.JMSException
- Specified by:
getQueue
in interface javax.jms.QueueBrowser
- Throws:
javax.jms.JMSException
getMessageSelector
public java.lang.String getMessageSelector()
throws javax.jms.JMSException
- Specified by:
getMessageSelector
in interface javax.jms.QueueBrowser
- Throws:
javax.jms.JMSException
getEnumeration
public java.util.Enumeration getEnumeration()
throws javax.jms.JMSException
- Specified by:
getEnumeration
in interface javax.jms.QueueBrowser
- Throws:
javax.jms.JMSException
close
public void close()
throws javax.jms.JMSException
- Specified by:
close
in interface javax.jms.QueueBrowser
- Throws:
javax.jms.JMSException