test_class.file: pooled-jms/src/test/java/org/messaginghub/pooled/jms/JmsPoolMessageConsumerTest.java
test_class.identifier: JmsPoolMessageConsumerTest
test_class.superclass: extends JmsPoolTestSupport
test_case.body: @Test
      public void testReceiveNoWait() throws JMSException {
          JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection();
          Session session = connection.createSession();
          Queue queue = session.createTemporaryQueue();
          MessageConsumer consumer = session.createConsumer(queue, "Color = Red");
  
          assertNull(consumer.receiveNoWait());
  
          consumer.close();
  
          try {
              consumer.receiveNoWait();
              fail("Should not be able to interact with closed consumer");
          } catch (IllegalStateException ise) {}
      }
test_case.class_method_signature: JmsPoolMessageConsumerTest.testReceiveNoWait()
test_case.full_signature: @Test public void testReceiveNoWait()
test_case.identifier: testReceiveNoWait
test_case.invocations: createQueueConnection createSession createTemporaryQueue createConsumer assertNull receiveNoWait close receiveNoWait fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReceiveNoWait()
focal_class.declarator: session
focal_class.modifier: private final
focal_class.original_string: private final JmsPoolSession session;
focal_class.type: JmsPoolSession
focal_class.var_name: session
focal_class.declarator: messageConsumer
focal_class.modifier: private final
focal_class.original_string: private final MessageConsumer messageConsumer;
focal_class.type: MessageConsumer
focal_class.var_name: messageConsumer
focal_class.declarator: closed = new AtomicBoolean()
focal_class.modifier: private final
focal_class.original_string: private final AtomicBoolean closed = new AtomicBoolean();
focal_class.type: AtomicBoolean
focal_class.var_name: closed
focal_class.file: pooled-jms/src/main/java/org/messaginghub/pooled/jms/JmsPoolMessageConsumer.java
focal_class.identifier: JmsPoolMessageConsumer
focal_class.interfaces: implements MessageConsumer, AutoCloseable
focal_class.class_method_signature: JmsPoolMessageConsumer.JmsPoolMessageConsumer(JmsPoolSession session, MessageConsumer messageConsumer)
focal_class.full_signature:   JmsPoolMessageConsumer(JmsPoolSession session, MessageConsumer messageConsumer)
focal_class.identifier: JmsPoolMessageConsumer
focal_class.parameters: (JmsPoolSession session, MessageConsumer messageConsumer)
focal_class.signature:  JmsPoolMessageConsumer(JmsPoolSession session, MessageConsumer messageConsumer)
focal_class.class_method_signature: JmsPoolMessageConsumer.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: JmsPoolMessageConsumer.getMessageListener()
focal_class.full_signature: @Override public MessageListener getMessageListener()
focal_class.identifier: getMessageListener
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MessageListener
focal_class.signature: MessageListener getMessageListener()
focal_class.class_method_signature: JmsPoolMessageConsumer.getMessageSelector()
focal_class.full_signature: @Override public String getMessageSelector()
focal_class.identifier: getMessageSelector
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMessageSelector()
focal_class.class_method_signature: JmsPoolMessageConsumer.receive()
focal_class.full_signature: @Override public Message receive()
focal_class.identifier: receive
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Message
focal_class.signature: Message receive()
focal_class.class_method_signature: JmsPoolMessageConsumer.receive(long timeout)
focal_class.full_signature: @Override public Message receive(long timeout)
focal_class.identifier: receive
focal_class.modifiers: @Override public
focal_class.parameters: (long timeout)
focal_class.return: Message
focal_class.signature: Message receive(long timeout)
focal_class.class_method_signature: JmsPoolMessageConsumer.receiveNoWait()
focal_class.full_signature: @Override public Message receiveNoWait()
focal_class.identifier: receiveNoWait
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Message
focal_class.signature: Message receiveNoWait()
focal_class.class_method_signature: JmsPoolMessageConsumer.setMessageListener(MessageListener listener)
focal_class.full_signature: @Override public void setMessageListener(MessageListener listener)
focal_class.identifier: setMessageListener
focal_class.modifiers: @Override public
focal_class.parameters: (MessageListener listener)
focal_class.return: void
focal_class.signature: void setMessageListener(MessageListener listener)
focal_class.class_method_signature: JmsPoolMessageConsumer.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: JmsPoolMessageConsumer.getMessageConsumer()
focal_class.full_signature: public MessageConsumer getMessageConsumer()
focal_class.identifier: getMessageConsumer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MessageConsumer
focal_class.signature: MessageConsumer getMessageConsumer()
focal_class.class_method_signature: JmsPoolMessageConsumer.checkClosed()
focal_class.full_signature: protected void checkClosed()
focal_class.identifier: checkClosed
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkClosed()
focal_class.class_method_signature: JmsPoolMessageConsumer.getDelegate()
focal_class.full_signature: protected MessageConsumer getDelegate()
focal_class.identifier: getDelegate
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: MessageConsumer
focal_class.signature: MessageConsumer getDelegate()
focal_method.body: @Override
      public Message receiveNoWait() throws JMSException {
          checkClosed();
          return messageConsumer.receiveNoWait();
      }
focal_method.class_method_signature: JmsPoolMessageConsumer.receiveNoWait()
focal_method.full_signature: @Override public Message receiveNoWait()
focal_method.identifier: receiveNoWait
focal_method.invocations: checkClosed receiveNoWait
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Message
focal_method.signature: Message receiveNoWait()