/** * Creates a nondurable subscriber to the specified topic. <p/> * <P> * A client uses a <CODE>TopicSubscriber</CODE> object to receive messages * that have been published to a topic. <p/> * <P> * Regular <CODE>TopicSubscriber</CODE> objects are not durable. They * receive only messages that are published while they are active. <p/> * <P> * In some cases, a connection may both publish and subscribe to a topic. * The subscriber <CODE>NoLocal</CODE> attribute allows a subscriber to * inhibit the delivery of messages published by its own connection. The * default value for this attribute is false. * * @param topic the <CODE>Topic</CODE> to subscribe to * @return TopicSubscriber * @throws JMSException if the session fails to create a subscriber due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicSubscriber createSubscriber(Topic topic) throws JMSException { checkClosed(); return createSubscriber(topic, null, false); }
/** * Creates a nondurable subscriber to the specified topic. <p/> * <P> * A client uses a <CODE>TopicSubscriber</CODE> object to receive messages * that have been published to a topic. <p/> * <P> * Regular <CODE>TopicSubscriber</CODE> objects are not durable. They * receive only messages that are published while they are active. <p/> * <P> * In some cases, a connection may both publish and subscribe to a topic. * The subscriber <CODE>NoLocal</CODE> attribute allows a subscriber to * inhibit the delivery of messages published by its own connection. The * default value for this attribute is false. * * @param topic the <CODE>Topic</CODE> to subscribe to * @return TopicSubscriber * @throws JMSException if the session fails to create a subscriber due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicSubscriber createSubscriber(Topic topic) throws JMSException { checkClosed(); return createSubscriber(topic, null, false); }
/** * Creates a nondurable subscriber to the specified topic. <p/> * <P> * A client uses a <CODE>TopicSubscriber</CODE> object to receive messages * that have been published to a topic. <p/> * <P> * Regular <CODE>TopicSubscriber</CODE> objects are not durable. They * receive only messages that are published while they are active. <p/> * <P> * In some cases, a connection may both publish and subscribe to a topic. * The subscriber <CODE>NoLocal</CODE> attribute allows a subscriber to * inhibit the delivery of messages published by its own connection. The * default value for this attribute is false. * * @param topic the <CODE>Topic</CODE> to subscribe to * @return TopicSubscriber * @throws JMSException if the session fails to create a subscriber due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ public TopicSubscriber createSubscriber(Topic topic) throws JMSException { checkClosed(); return createSubscriber(topic, null, false); }
/** * Creates a nondurable subscriber to the specified topic. <p/> * <P> * A client uses a <CODE>TopicSubscriber</CODE> object to receive messages * that have been published to a topic. <p/> * <P> * Regular <CODE>TopicSubscriber</CODE> objects are not durable. They * receive only messages that are published while they are active. <p/> * <P> * In some cases, a connection may both publish and subscribe to a topic. * The subscriber <CODE>NoLocal</CODE> attribute allows a subscriber to * inhibit the delivery of messages published by its own connection. The * default value for this attribute is false. * * @param topic the <CODE>Topic</CODE> to subscribe to * @return TopicSubscriber * @throws JMSException if the session fails to create a subscriber due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicSubscriber createSubscriber(Topic topic) throws JMSException { checkClosed(); return createSubscriber(topic, null, false); }
/** * Creates a nondurable subscriber to the specified topic. <p/> * <P> * A client uses a <CODE>TopicSubscriber</CODE> object to receive messages * that have been published to a topic. <p/> * <P> * Regular <CODE>TopicSubscriber</CODE> objects are not durable. They * receive only messages that are published while they are active. <p/> * <P> * In some cases, a connection may both publish and subscribe to a topic. * The subscriber <CODE>NoLocal</CODE> attribute allows a subscriber to * inhibit the delivery of messages published by its own connection. The * default value for this attribute is false. * * @param topic the <CODE>Topic</CODE> to subscribe to * @return TopicSubscriber * @throws JMSException if the session fails to create a subscriber due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicSubscriber createSubscriber(Topic topic) throws JMSException { checkClosed(); return createSubscriber(topic, null, false); }
public TopicSubscriber createSubscriber(Topic topic) throws JMSException { return addTopicSubscriber(getSession().createSubscriber(topic)); }
public TopicSubscriber createSubscriber(Topic topic, String selector, boolean local) throws JMSException { return addTopicSubscriber(getSession().createSubscriber(topic, selector, local)); }