org.apache.activemq.benchmark
Class Consumer
java.lang.Object
org.apache.activemq.benchmark.BenchmarkSupport
org.apache.activemq.benchmark.Consumer
- All Implemented Interfaces:
- javax.jms.MessageListener
public class Consumer
- extends BenchmarkSupport
- implements javax.jms.MessageListener
| Methods inherited from class org.apache.activemq.benchmark.BenchmarkSupport |
addResource, asMemoryString, count, createDestination, createFactory, createSession, getConnectionCount, getCounter, getFactory, getUrl, isDurable, isTopic, parseBoolean, resetCount, setConnectionCount, setDurable, setFactory, setSubject, setTimerLoop, setTopic, setUrl, start, timerLoop, useTimerLoop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Consumer
public Consumer()
main
public static void main(String[] args)
run
public void run()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
subscribe
protected void subscribe()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
subscribe
protected void subscribe(String subject)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
onMessage
public void onMessage(javax.jms.Message message)
- Specified by:
onMessage in interface javax.jms.MessageListener
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.