@Override public boolean getNoLocal() throws JMSException { return (this.target instanceof TopicSubscriber && ((TopicSubscriber) this.target).getNoLocal()); }
@Override public boolean getNoLocal() throws JMSException { checkTopicSubscriber(); return ((TopicSubscriber) delegate).getNoLocal(); }
@Override public boolean getNoLocal() throws JMSException { return (this.target instanceof TopicSubscriber && ((TopicSubscriber) this.target).getNoLocal()); }
@Override public boolean getNoLocal() throws JMSException { return (this.target instanceof TopicSubscriber && ((TopicSubscriber) this.target).getNoLocal()); }
public boolean getNoLocal() throws JMSException { return consumer.getNoLocal(); }
public boolean getNoLocal() throws JMSException { return (this.target instanceof TopicSubscriber && ((TopicSubscriber) this.target).getNoLocal()); }
public boolean getNoLocal() throws JMSException { return ((TopicSubscriber) consumer).getNoLocal(); }
public boolean getNoLocal() throws JMSException { checkState(); return ((TopicSubscriber) consumer).getNoLocal(); }
@Override public boolean getNoLocal() throws JMSException { return ((TopicSubscriber) getMessageConsumer()).getNoLocal(); }
@Override public boolean getNoLocal() throws JMSException { return ((TopicSubscriber) getMessageConsumer()).getNoLocal(); }
public boolean getNoLocal() throws JMSException { return ((TopicSubscriber) getMessageConsumer()).getNoLocal(); }
/** * Get the no local value * @return The value * @exception JMSException Thrown if an error occurs */ public boolean getNoLocal() throws JMSException { if (_log.isTraceEnabled()) { _log.trace("getNoLocal()"); } checkState(); return ((TopicSubscriber)_consumer).getNoLocal(); }
public boolean getNoLocal() throws JMSException { return ((TopicSubscriber) getMessageConsumer()).getNoLocal(); }
/** * Get the no local value * * @return The value * @throws JMSException Thrown if an error occurs */ @Override public boolean getNoLocal() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getNoLocal()"); } checkState(); return ((TopicSubscriber) consumer).getNoLocal(); }
/** * Get the no local value * * @return The value * @throws JMSException Thrown if an error occurs */ @Override public boolean getNoLocal() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getNoLocal()"); } checkState(); return ((TopicSubscriber) consumer).getNoLocal(); }
@Test public void testGetNoLocalOnClosedConsumer() throws Exception { Connection consumerConnection = null; try { consumerConnection = createConnection(); TopicConnection tc = (TopicConnection) consumerConnection; TopicSession consumerSession = tc.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); TopicSubscriber topicConsumer = consumerSession.createSubscriber(ActiveMQServerTestCase.topic1); topicConsumer.close(); try { topicConsumer.getNoLocal(); Assert.fail("must throw a JMS IllegalStateException"); } catch (javax.jms.IllegalStateException e) { // OK } } finally { if (consumerConnection != null) { consumerConnection.close(); } } }