class: ActiveMqBrowser
[24:14] (extern: com.lehman.aussom.ActiveMqBrowser) extends: object
Walks a snapshot of a queue's messages without consuming them. Created with ActiveMqSession.createBrowser(). Typical use: while (b.hasMore()) { m = b.next(); }.
Methods
-
hasMore ()
Reports whether the browse snapshot has more messages.
- @r
Abool with true while more messages are available.
- @r
-
next ()
Gets the next browsed message without consuming it.
- @r
AnActiveMqMessage object.
- @r
-
getQueueName ()
Gets the browsed queue's name.
- @r
Astring with the queue name.
- @r
-
close ()
Closes the browser. Safe to call more than once.
- @r
thisobject
- @r