[TIBCO.EMS .NET client library 7.0 documentation]

Enumerate the messages in a queue without consuming them

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.dll)

Syntax

public class QueueBrowser : IEnumerator
Public Class QueueBrowser _
	Implements IEnumerator
public ref class QueueBrowser : IEnumerator

Remarks

A browser is a dynamic enumerator of the queue (not a static snapshot). The contents of the queue on the server change as messages arrive and consumers remove them. Meanwhile, a client can call the MoveNext()()() method to advance the browser enumeration to the next message in the queue.

The browser can enumerate messages in a queue, or a subset filtered by a message selector.

Sessions serve as factories for queue browsers; see Session.CreateBrowser. A QueueBrowser can be created from either a Session or a QueueSession.

Note that the application must close the QueueBrowser to free server resources.

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

Inheritance Hierarchy

System..::.Object
  TIBCO.EMS..::.QueueBrowser

See Also