Package org.apache.qpid.jms
Class JmsConnectionConsumer
- java.lang.Object
-
- org.apache.qpid.jms.JmsConnectionConsumer
-
- All Implemented Interfaces:
javax.jms.ConnectionConsumer,JmsMessageDispatcher
public class JmsConnectionConsumer extends Object implements javax.jms.ConnectionConsumer, JmsMessageDispatcher
JMS Connection Consumer implementation.
-
-
Constructor Summary
Constructors Constructor Description JmsConnectionConsumer(JmsConnection connection, JmsConsumerInfo consumerInfo, MessageQueue messageQueue, javax.jms.ServerSessionPool sessionPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckClosed()voidclose()protected voiddoClose()Called to initiate shutdown of consumer resources and request that the remote peer remove the registered producer.javax.jms.ServerSessionPoolgetServerSessionPool()JmsConnectionConsumerinit()voidonInboundMessage(JmsInboundMessageDispatch envelope)Called when a new Message delivery is in progress.protected voidshutdown()protected voidshutdown(Throwable cause)voidstart()voidstop()StringtoString()
-
-
-
Constructor Detail
-
JmsConnectionConsumer
public JmsConnectionConsumer(JmsConnection connection, JmsConsumerInfo consumerInfo, MessageQueue messageQueue, javax.jms.ServerSessionPool sessionPool) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-
Method Detail
-
init
public JmsConnectionConsumer init() throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
onInboundMessage
public void onInboundMessage(JmsInboundMessageDispatch envelope)
Description copied from interface:JmsMessageDispatcherCalled when a new Message delivery is in progress.- Specified by:
onInboundMessagein interfaceJmsMessageDispatcher- Parameters:
envelope- the incoming message dispatch information.
-
close
public void close() throws javax.jms.JMSException- Specified by:
closein interfacejavax.jms.ConnectionConsumer- Throws:
javax.jms.JMSException
-
doClose
protected void doClose() throws javax.jms.JMSExceptionCalled to initiate shutdown of consumer resources and request that the remote peer remove the registered producer.- Throws:
javax.jms.JMSException- if an error occurs during the consumer close operation.
-
shutdown
protected void shutdown() throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
shutdown
protected void shutdown(Throwable cause) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
start
public void start()
-
stop
public void stop()
-
getServerSessionPool
public javax.jms.ServerSessionPool getServerSessionPool() throws javax.jms.JMSException- Specified by:
getServerSessionPoolin interfacejavax.jms.ConnectionConsumer- Throws:
javax.jms.JMSException
-
checkClosed
protected void checkClosed() throws javax.jms.IllegalStateException- Throws:
javax.jms.IllegalStateException
-
-