Class OutboundSubscriber
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundConsumer
-
- org.objectweb.joram.client.connector.OutboundSubscriber
-
- All Implemented Interfaces:
AutoCloseable,MessageConsumer,TopicSubscriber
public class OutboundSubscriber extends OutboundConsumer implements TopicSubscriber
AnOutboundSubscriberinstance wraps a JMS PubSub consumer for a component involved in outbound messaging.
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanDEBUGprivate static Loggerloggerprivate booleannoLocalNoLocal parameter.private TopictopicTopic instance to consume messages from.-
Fields inherited from class org.objectweb.joram.client.connector.OutboundConsumer
consumer, session, valid
-
-
Constructor Summary
Constructors Constructor Description OutboundSubscriber(Topic topic, boolean noLocal, MessageConsumer consumer, OutboundSession session)Constructs anOutboundSubscriberinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetNoLocal()Returns the noLocal parameter.TopicgetTopic()Returns the consumer's topic.-
Methods inherited from class org.objectweb.joram.client.connector.OutboundConsumer
checkValidity, close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jms.MessageConsumer
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
-
-
-
-
Constructor Detail
-
OutboundSubscriber
OutboundSubscriber(Topic topic, boolean noLocal, MessageConsumer consumer, OutboundSession session)
Constructs anOutboundSubscriberinstance.
-
-
Method Detail
-
getTopic
public Topic getTopic() throws JMSException
Returns the consumer's topic.- Specified by:
getTopicin interfaceTopicSubscriber- Throws:
JMSException
-
getNoLocal
public boolean getNoLocal() throws JMSExceptionReturns the noLocal parameter.- Specified by:
getNoLocalin interfaceTopicSubscriber- Throws:
JMSException
-
-