|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.QueueBrowser
public class QueueBrowser
Implements the javax.jms.QueueBrowser
interface.
Nested Class Summary | |
---|---|
private class |
QueueBrowser.QueueEnumeration
The QueueEnumeration class is used to enumerate the browses
sent by queues. |
Field Summary | |
---|---|
private boolean |
closed
true if the browser is closed. |
private static org.objectweb.util.monolog.api.Logger |
logger
|
private Queue |
queue
The queue the browser browses. |
private java.lang.String |
selector
The selector for filtering messages. |
private Session |
sess
The session the browser belongs to. |
Constructor Summary | |
---|---|
QueueBrowser(Session sess,
Queue queue,
java.lang.String selector)
Constructs a browser. |
Method Summary | |
---|---|
void |
close()
API method. |
java.util.Enumeration |
getEnumeration()
API method. |
java.lang.String |
getMessageSelector()
API method. |
javax.jms.Queue |
getQueue()
API method. |
java.lang.String |
toString()
Returns a string view of this browser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Session sess
private Queue queue
private java.lang.String selector
private boolean closed
true
if the browser is closed.
private static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
---|
QueueBrowser(Session sess, Queue queue, java.lang.String selector) throws javax.jms.JMSException
sess
- The session the browser belongs to.queue
- The queue the browser browses.selector
- The selector for filtering messages.
javax.jms.InvalidDestinationException
- if an invalid destination is specified.
javax.jms.InvalidSelectorException
- If the selector syntax is invalid.
javax.jms.IllegalStateException
- If the connection is broken.
javax.jms.JMSException
- If the creation fails for any other reason.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public javax.jms.Queue getQueue() throws javax.jms.JMSException
getQueue
in interface javax.jms.QueueBrowser
javax.jms.IllegalStateException
- If the browser is closed.
javax.jms.JMSException
public java.lang.String getMessageSelector() throws javax.jms.JMSException
getMessageSelector
in interface javax.jms.QueueBrowser
javax.jms.IllegalStateException
- If the browser is closed.
javax.jms.JMSException
public java.util.Enumeration getEnumeration() throws javax.jms.JMSException
getEnumeration
in interface javax.jms.QueueBrowser
javax.jms.IllegalStateException
- If the browser is closed, or if the
connection is broken.
javax.jms.JMSSecurityException
- If the client is not a READER on the
queue.
javax.jms.JMSException
- If the request fails for any other reason.public void close() throws javax.jms.JMSException
close
in interface javax.jms.QueueBrowser
javax.jms.JMSException
- Actually never thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |