public class NevadoMessageConsumer extends Object implements javax.jms.MessageConsumer, javax.jms.QueueReceiver, javax.jms.TopicSubscriber
Constructor and Description |
---|
NevadoMessageConsumer(NevadoSession session,
NevadoDestination destination,
String selector,
boolean noLocal) |
NevadoMessageConsumer(NevadoSession session,
NevadoTopic topic,
String durableSubscriptionName,
String selector,
boolean noLocal) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected javax.jms.Destination |
getDestination() |
javax.jms.MessageListener |
getMessageListener() |
String |
getMessageSelector() |
boolean |
getNoLocal() |
javax.jms.Queue |
getQueue() |
javax.jms.Topic |
getTopic() |
boolean |
isClosed() |
protected boolean |
processAsyncMessage() |
NevadoMessage |
receive() |
NevadoMessage |
receive(long timeoutMs) |
NevadoMessage |
receiveNoWait() |
void |
setMessageListener(javax.jms.MessageListener messageListener) |
public NevadoMessageConsumer(NevadoSession session, NevadoDestination destination, String selector, boolean noLocal) throws javax.jms.JMSException
javax.jms.JMSException
public NevadoMessageConsumer(NevadoSession session, NevadoTopic topic, String durableSubscriptionName, String selector, boolean noLocal) throws javax.jms.JMSException
javax.jms.JMSException
public String getMessageSelector() throws javax.jms.JMSException
getMessageSelector
in interface javax.jms.MessageConsumer
javax.jms.JMSException
public javax.jms.MessageListener getMessageListener()
getMessageListener
in interface javax.jms.MessageConsumer
public void setMessageListener(javax.jms.MessageListener messageListener) throws javax.jms.JMSException
setMessageListener
in interface javax.jms.MessageConsumer
javax.jms.JMSException
public NevadoMessage receive() throws javax.jms.JMSException
receive
in interface javax.jms.MessageConsumer
javax.jms.JMSException
public NevadoMessage receive(long timeoutMs) throws javax.jms.JMSException
receive
in interface javax.jms.MessageConsumer
javax.jms.JMSException
public NevadoMessage receiveNoWait() throws javax.jms.JMSException
receiveNoWait
in interface javax.jms.MessageConsumer
javax.jms.JMSException
public void close() throws javax.jms.JMSException
close
in interface javax.jms.MessageConsumer
javax.jms.JMSException
protected boolean processAsyncMessage() throws javax.jms.JMSException, InterruptedException
javax.jms.JMSException
InterruptedException
public javax.jms.Queue getQueue() throws javax.jms.JMSException
getQueue
in interface javax.jms.QueueReceiver
javax.jms.JMSException
protected javax.jms.Destination getDestination()
public boolean isClosed()
public javax.jms.Topic getTopic() throws javax.jms.JMSException
getTopic
in interface javax.jms.TopicSubscriber
javax.jms.JMSException
public boolean getNoLocal() throws javax.jms.JMSException
getNoLocal
in interface javax.jms.TopicSubscriber
javax.jms.JMSException
Copyright © 2014. All Rights Reserved.