|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jms4spread.MessageConsumer
A client uses a Messageconsumer to get a Message for a destination. It is the parent for all Message Conusmers
Method Summary | |
void |
close()
Performs cleanup for a Message Consumer. |
MessageListener |
getMessageListener()
Gets the Message Listener |
java.lang.String |
getMessageSelector()
This is a place holder - not yet implemented |
Message |
receive()
Gets a message form JMS4spread. |
Message |
receive(int timeout)
Gets a message form JMS4spread |
Message |
receiveNoWait()
Gets a message form JMS4spread or return immedeiately in case there is none. |
void |
setMessageListener(MessageListener ml)
Set the Message Listener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getMessageSelector() throws JMSException
public void close() throws JMSException
JMSException
- in chase of an external (Spread) errorpublic Message receive(int timeout) throws JMSException
timeout
- the time to wait before returning in case
there is no messagepublic Message receive() throws JMSException
public Message receiveNoWait() throws JMSException
public void setMessageListener(MessageListener ml) throws JMSException
ml
- A MessageListenerJMSException
- in case of internal errorpublic MessageListener getMessageListener() throws JMSException
JMSException
- in case of internal error
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |