public class JmsConsumerClient extends AbstractJmsMeasurableClient
Modifier and Type | Field and Description |
---|---|
protected JmsConsumerProperties |
client |
protected javax.jms.MessageConsumer |
jmsConsumer |
throughput
clientName, 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, setThroughput
commitTxIfNecessary, createCompositeDestination, createCompositeDestination, createDestination, createDestination, getClientName, getConnection, getDestCount, getDestIndex, getFactory, getSession, setClientName, setDestCount, setDestIndex, setFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClientName
protected 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.JMSException
public void receiveMessages(int destCount) throws javax.jms.JMSException
javax.jms.JMSException
public void receiveMessages(int destIndex, int destCount) throws javax.jms.JMSException
javax.jms.JMSException
public void receiveSyncTimeBasedMessages(long duration) throws javax.jms.JMSException
javax.jms.JMSException
public void receiveSyncCountBasedMessages(long count) throws javax.jms.JMSException
javax.jms.JMSException
public void receiveAsyncTimeBasedMessages(long duration) throws javax.jms.JMSException
javax.jms.JMSException
public void receiveAsyncCountBasedMessages(long count) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer createJmsConsumer() throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer createJmsConsumer(javax.jms.Destination dest) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer createJmsConsumer(javax.jms.Destination dest, java.lang.String selector, boolean noLocal) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer getJmsConsumer()
public JmsClientProperties getClient()
getClient
in class AbstractJmsClient
public void setClient(JmsClientProperties clientProps)
setClient
in class AbstractJmsClient
protected void sleep()
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.