public class JmsConsumerClient extends AbstractJmsMeasurableClient
Modifier and Type | Field and Description |
---|---|
protected JmsConsumerProperties |
client |
protected MessageConsumer |
jmsConsumer |
throughput
clientName, destCount, DESTINATION_SEPARATOR, destIndex, factory, jmsConnection, jmsSession
Constructor and Description |
---|
JmsConsumerClient(ConnectionFactory factory) |
JmsConsumerClient(JmsConsumerProperties clientProps,
ConnectionFactory factory) |
Modifier and Type | Method and Description |
---|---|
MessageConsumer |
createJmsConsumer() |
MessageConsumer |
createJmsConsumer(Destination dest) |
MessageConsumer |
createJmsConsumer(Destination dest,
String selector,
boolean noLocal) |
JmsClientProperties |
getClient() |
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, createDestinations, createTemporaryDestination, getClientName, getConnection, getDestCount, getDestinationType, getDestIndex, getFactory, getSession, getSimpleName, setClientName, setDestCount, setDestIndex, setFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClientName
protected MessageConsumer jmsConsumer
protected JmsConsumerProperties client
public JmsConsumerClient(ConnectionFactory factory)
public JmsConsumerClient(JmsConsumerProperties clientProps, ConnectionFactory factory)
public void receiveMessages() throws JMSException
JMSException
public void receiveMessages(int destCount) throws JMSException
JMSException
public void receiveMessages(int destIndex, int destCount) throws JMSException
JMSException
public void receiveSyncTimeBasedMessages(long duration) throws JMSException
JMSException
public void receiveSyncCountBasedMessages(long count) throws JMSException
JMSException
public void receiveAsyncTimeBasedMessages(long duration) throws JMSException
JMSException
public void receiveAsyncCountBasedMessages(long count) throws JMSException
JMSException
public MessageConsumer createJmsConsumer() throws JMSException
JMSException
public MessageConsumer createJmsConsumer(Destination dest) throws JMSException
JMSException
public MessageConsumer createJmsConsumer(Destination dest, String selector, boolean noLocal) throws JMSException
JMSException
public MessageConsumer getJmsConsumer()
public JmsClientProperties getClient()
getClient
in class AbstractJmsClient
public void setClient(JmsClientProperties clientProps)
setClient
in class AbstractJmsClient
protected void sleep()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.