|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrun.jms.core.client.JmsMessageConsumer
This is an abstract class that defines the generic behaviour of a consumer. A consumer is created and controlled through a session
Instances of these class pertain to a Destination, whether it is a queue or a topic. In addition a consumer can only be created through a valid session.
org.exolab.jms.client.JmsQueueReceiver| Field Summary | |
protected JmsSession |
_session
A consumer needs to be allocated through the session. |
| Method Summary | |
void |
close()
|
void |
destroy()
Release all resources used by this consumer |
long |
getClientId()
Return the session allocated consumer identifier |
java.lang.String |
getConsumerId()
This accessor will return a reference to the consumer id. |
abstract JmsDestination |
getJmsDestination()
This is an anstratc message that returns a reference to the destination |
long |
getLastMessageDelivered()
Return the last message asynchronously delivered to the consumer |
protected Logger |
getLogger()
Return a reference to the logger. |
javax.jms.MessageListener |
getMessageListener()
|
java.lang.String |
getMessageSelector()
|
boolean |
isClosed()
Returns state of consumer |
void |
onMessage(javax.jms.Message message)
Whenever a message is received for this destination it is processed as follows. |
javax.jms.Message |
receive()
|
javax.jms.Message |
receive(long timeout)
|
javax.jms.Message |
receiveNoWait()
|
javax.jms.Message |
retrieveMessage()
This method will make a synchronous call to the server and retrieve the first message in the cache. |
void |
setMessageListener(javax.jms.MessageListener listener)
|
| Field Detail |
protected JmsSession _session
| Method Detail |
public boolean isClosed()
public java.lang.String getConsumerId()
public long getClientId()
public java.lang.String getMessageSelector()
throws javax.jms.JMSException
public javax.jms.MessageListener getMessageListener()
throws javax.jms.JMSException
public void setMessageListener(javax.jms.MessageListener listener)
throws javax.jms.JMSException
public javax.jms.Message receive()
throws javax.jms.JMSException
public javax.jms.Message receiveNoWait()
throws javax.jms.JMSException
public javax.jms.Message receive(long timeout)
throws javax.jms.JMSException
public void close()
throws javax.jms.JMSException
public void destroy()
throws javax.jms.JMSException
JMSException - public void onMessage(javax.jms.Message message)
message - message received
public javax.jms.Message retrieveMessage()
throws javax.jms.JMSException
If there are any problems then return JMSException
JMSException - public long getLastMessageDelivered()
protected Logger getLogger()
public abstract JmsDestination getJmsDestination()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||