org.apache.activemq.tool
Class JmsConsumerClient
java.lang.Object
org.apache.activemq.tool.AbstractJmsClient
org.apache.activemq.tool.AbstractJmsMeasurableClient
org.apache.activemq.tool.JmsConsumerClient
- All Implemented Interfaces:
- MeasurableClient
public class JmsConsumerClient
- extends AbstractJmsMeasurableClient
Methods inherited from class org.apache.activemq.tool.AbstractJmsClient |
createCompositeDestination, createCompositeDestination, createDestination, createDestination, getClientName, getConnection, getDestCount, getDestIndex, getFactory, getSession, setClientName, setDestCount, setDestIndex, setFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jmsConsumer
protected MessageConsumer jmsConsumer
client
protected JmsConsumerProperties client
JmsConsumerClient
public JmsConsumerClient(ConnectionFactory factory)
JmsConsumerClient
public JmsConsumerClient(JmsConsumerProperties clientProps,
ConnectionFactory factory)
receiveMessages
public void receiveMessages()
throws JMSException
- Throws:
JMSException
receiveMessages
public void receiveMessages(int destCount)
throws JMSException
- Throws:
JMSException
receiveMessages
public void receiveMessages(int destIndex,
int destCount)
throws JMSException
- Throws:
JMSException
receiveSyncTimeBasedMessages
public void receiveSyncTimeBasedMessages(long duration)
throws JMSException
- Throws:
JMSException
receiveSyncCountBasedMessages
public void receiveSyncCountBasedMessages(long count)
throws JMSException
- Throws:
JMSException
receiveAsyncTimeBasedMessages
public void receiveAsyncTimeBasedMessages(long duration)
throws JMSException
- Throws:
JMSException
receiveAsyncCountBasedMessages
public void receiveAsyncCountBasedMessages(long count)
throws JMSException
- Throws:
JMSException
createJmsConsumer
public MessageConsumer createJmsConsumer()
throws JMSException
- Throws:
JMSException
createJmsConsumer
public MessageConsumer createJmsConsumer(Destination dest)
throws JMSException
- Throws:
JMSException
createJmsConsumer
public MessageConsumer createJmsConsumer(Destination dest,
String selector,
boolean noLocal)
throws JMSException
- Throws:
JMSException
getJmsConsumer
public MessageConsumer getJmsConsumer()
getClient
public JmsClientProperties getClient()
- Specified by:
getClient
in class AbstractJmsClient
setClient
public void setClient(JmsClientProperties clientProps)
- Specified by:
setClient
in class AbstractJmsClient
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.