com.ibm.msg.client.jms

Interface JmsQueueBrowser

  • All Superinterfaces:
    java.lang.AutoCloseable, JmsPropertyContext, JmsReadablePropertyContext, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.QueueBrowser, java.io.Serializable
    All Known Implementing Classes:
    MQQueueBrowser


    public interface JmsQueueBrowser
    extends javax.jms.QueueBrowser, JmsPropertyContext
    JmsQueueBrowser interface - this is a javax.jms.QueueBrowser with properties. A client uses a JmsQueueBrowser to look at messages on a queue without removing them. A JmsQueueBrowser is created by Session.createBrowser(javax.jms.Queue).

    Note that an instance of java.util.Enumeration is used to hold the browse cursor. This means that each instance of this Enumeration will have one open handle to the underlying queue on which the JmsQueueBrowser is created. These open queues get closed only when the close() method of JmsQueueBrowser is called or when the queue does not have any more messages ( either when hasMoreElements() returns false, or nextElement() throws a NoSuchElementException ).

    Note: Although this class extends a class which implements the Serializable Interface, it is not itself Serializable.

    See Also:
    QueueBrowser
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.