public class JmsConnectionConsumer extends Object implements javax.jms.ConnectionConsumer, JmsMessageDispatcher
| Constructor and Description |
|---|
JmsConnectionConsumer(JmsConnection connection,
JmsConsumerInfo consumerInfo,
MessageQueue messageQueue,
javax.jms.ServerSessionPool sessionPool) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkClosed() |
void |
close() |
protected void |
doClose()
Called to initiate shutdown of consumer resources and request that the remote
peer remove the registered producer.
|
javax.jms.ServerSessionPool |
getServerSessionPool() |
JmsConnectionConsumer |
init() |
void |
onInboundMessage(JmsInboundMessageDispatch envelope)
Called when a new Message delivery is in progress.
|
protected void |
shutdown() |
protected void |
shutdown(Throwable cause) |
void |
start() |
void |
stop() |
String |
toString() |
public JmsConnectionConsumer(JmsConnection connection, JmsConsumerInfo consumerInfo, MessageQueue messageQueue, javax.jms.ServerSessionPool sessionPool) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic JmsConnectionConsumer init() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void onInboundMessage(JmsInboundMessageDispatch envelope)
JmsMessageDispatcheronInboundMessage in interface JmsMessageDispatcherenvelope - the incoming message dispatch information.public void close()
throws javax.jms.JMSException
close in interface javax.jms.ConnectionConsumerjavax.jms.JMSExceptionprotected void doClose()
throws javax.jms.JMSException
javax.jms.JMSException - if an error occurs during the consumer close operation.protected void shutdown()
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void shutdown(Throwable cause) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void start()
public void stop()
public javax.jms.ServerSessionPool getServerSessionPool()
throws javax.jms.JMSException
getServerSessionPool in interface javax.jms.ConnectionConsumerjavax.jms.JMSExceptionprotected void checkClosed()
throws javax.jms.IllegalStateException
javax.jms.IllegalStateExceptionCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.