public class JmsConsumerClient extends AbstractJmsMeasurableClient
| Modifier and Type | Field and Description |
|---|---|
protected JmsConsumerProperties |
client |
protected javax.jms.MessageConsumer |
jmsConsumer |
throughputclientName, destCount, destIndex, factory, jmsConnection, jmsSession| Constructor and Description |
|---|
JmsConsumerClient(javax.jms.ConnectionFactory factory) |
JmsConsumerClient(JmsConsumerProperties clientProps,
javax.jms.ConnectionFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.MessageConsumer |
createJmsConsumer() |
javax.jms.MessageConsumer |
createJmsConsumer(javax.jms.Destination dest) |
javax.jms.MessageConsumer |
createJmsConsumer(javax.jms.Destination dest,
java.lang.String selector,
boolean noLocal) |
JmsClientProperties |
getClient() |
javax.jms.MessageConsumer |
getJmsConsumer() |
void |
receiveAsyncCountBasedMessages(long count) |
void |
receiveAsyncTimeBasedMessages(long duration) |
void |
receiveMessages() |
void |
receiveMessages(int destCount) |
void |
receiveMessages(int destIndex,
int destCount) |
void |
receiveSyncCountBasedMessages(long count) |
void |
receiveSyncTimeBasedMessages(long duration) |
void |
setClient(JmsClientProperties clientProps) |
protected void |
sleep()
A way to throttle the consumer.
|
getThroughput, incThroughput, incThroughput, reset, setThroughputcommitTxIfNecessary, createCompositeDestination, createCompositeDestination, createDestination, createDestination, getClientName, getConnection, getDestCount, getDestIndex, getFactory, getSession, setClientName, setDestCount, setDestIndex, setFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientNameprotected javax.jms.MessageConsumer jmsConsumer
protected JmsConsumerProperties client
public JmsConsumerClient(javax.jms.ConnectionFactory factory)
public JmsConsumerClient(JmsConsumerProperties clientProps, javax.jms.ConnectionFactory factory)
public void receiveMessages()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void receiveMessages(int destCount)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void receiveMessages(int destIndex,
int destCount)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void receiveSyncTimeBasedMessages(long duration)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void receiveSyncCountBasedMessages(long count)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void receiveAsyncTimeBasedMessages(long duration)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void receiveAsyncCountBasedMessages(long count)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.MessageConsumer createJmsConsumer()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.MessageConsumer createJmsConsumer(javax.jms.Destination dest)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.MessageConsumer createJmsConsumer(javax.jms.Destination dest,
java.lang.String selector,
boolean noLocal)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.MessageConsumer getJmsConsumer()
public JmsClientProperties getClient()
getClient in class AbstractJmsClientpublic void setClient(JmsClientProperties clientProps)
setClient in class AbstractJmsClientprotected void sleep()
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.