public class MemConsumer extends MemMessageIdList implements javax.jms.MessageListener
| Modifier and Type | Field and Description |
|---|---|
protected javax.jms.Connection |
connection |
protected javax.jms.MessageConsumer |
consumer |
protected long |
counter |
protected boolean |
inOrder |
protected boolean |
isParent |
LOG| Constructor and Description |
|---|
MemConsumer() |
MemConsumer(javax.jms.ConnectionFactory fac,
javax.jms.Destination dest) |
MemConsumer(javax.jms.ConnectionFactory fac,
javax.jms.Destination dest,
java.lang.String consumerName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInOrder() |
boolean |
isParent() |
void |
onMessage(javax.jms.Message msg) |
javax.jms.Message |
receive() |
javax.jms.Message |
receive(long wait) |
void |
setAsParent(boolean isParent) |
void |
shutDown() |
void |
start() |
void |
stop() |
equals, flushMessages, getMessageCount, getMessageIds, getParent, hashCode, hasReceivedMessage, hasReceivedMessages, isVerbose, setParent, setVerbose, toString, waitForMessagesToArriveprotected javax.jms.Connection connection
protected javax.jms.MessageConsumer consumer
protected long counter
protected boolean isParent
protected boolean inOrder
public MemConsumer()
public MemConsumer(javax.jms.ConnectionFactory fac,
javax.jms.Destination dest,
java.lang.String consumerName)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic MemConsumer(javax.jms.ConnectionFactory fac,
javax.jms.Destination dest)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void start()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void stop()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void shutDown()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.Message receive()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.Message receive(long wait)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void onMessage(javax.jms.Message msg)
onMessage in interface javax.jms.MessageListeneronMessage in class MemMessageIdListpublic boolean isInOrder()
public void setAsParent(boolean isParent)
public boolean isParent()
Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.