Class ActiveMQJMSConsumer
- java.lang.Object
-
- org.apache.activemq.artemis.jms.client.ActiveMQJMSConsumer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,javax.jms.JMSConsumer
public class ActiveMQJMSConsumer extends java.lang.Object implements javax.jms.JMSConsumer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
javax.jms.MessageListener
getMessageListener()
java.lang.String
getMessageSelector()
javax.jms.Message
receive()
javax.jms.Message
receive(long timeout)
<T> T
receiveBody(java.lang.Class<T> c)
<T> T
receiveBody(java.lang.Class<T> c, long timeout)
<T> T
receiveBodyNoWait(java.lang.Class<T> c)
javax.jms.Message
receiveNoWait()
void
setMessageListener(javax.jms.MessageListener listener)
-
-
-
Method Detail
-
getMessageSelector
public java.lang.String getMessageSelector()
- Specified by:
getMessageSelector
in interfacejavax.jms.JMSConsumer
-
getMessageListener
public javax.jms.MessageListener getMessageListener() throws javax.jms.JMSRuntimeException
- Specified by:
getMessageListener
in interfacejavax.jms.JMSConsumer
- Throws:
javax.jms.JMSRuntimeException
-
setMessageListener
public void setMessageListener(javax.jms.MessageListener listener) throws javax.jms.JMSRuntimeException
- Specified by:
setMessageListener
in interfacejavax.jms.JMSConsumer
- Throws:
javax.jms.JMSRuntimeException
-
receive
public javax.jms.Message receive()
- Specified by:
receive
in interfacejavax.jms.JMSConsumer
-
receive
public javax.jms.Message receive(long timeout)
- Specified by:
receive
in interfacejavax.jms.JMSConsumer
-
receiveNoWait
public javax.jms.Message receiveNoWait()
- Specified by:
receiveNoWait
in interfacejavax.jms.JMSConsumer
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejavax.jms.JMSConsumer
-
receiveBody
public <T> T receiveBody(java.lang.Class<T> c)
- Specified by:
receiveBody
in interfacejavax.jms.JMSConsumer
-
receiveBody
public <T> T receiveBody(java.lang.Class<T> c, long timeout)
- Specified by:
receiveBody
in interfacejavax.jms.JMSConsumer
-
receiveBodyNoWait
public <T> T receiveBodyNoWait(java.lang.Class<T> c)
- Specified by:
receiveBodyNoWait
in interfacejavax.jms.JMSConsumer
-
-