Class QueueBrowser

  • All Implemented Interfaces:
    AutoCloseable, QueueBrowser

    public class QueueBrowser
    extends Object
    implements QueueBrowser
    Implements the javax.jms.QueueBrowser interface.

    A client uses a QueueBrowser object to look at messages on a queue without removing them.

    The getEnumeration method returns a java.util.Enumeration that is used to scan the queue's messages. It may be an enumeration of the entire content of a queue, or it may contain only the messages matching a message selector.

    A QueueBrowser can be created from either a Session or a QueueSession.

    • Field Detail

      • sess

        private Session sess
        The session the browser belongs to.
      • queue

        private Queue queue
        The queue the browser browses.
      • selector

        private String selector
        The selector for filtering messages.
      • closed

        private boolean closed
        true if the browser is closed.
      • logger

        private static org.objectweb.util.monolog.api.Logger logger