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