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
- Version:
- $Revision$
- Author:
- James Strachan
Methods inherited from class org.apache.activemq.benchmark.BenchmarkSupport |
addResource, asMemoryString, count, createDestination, createFactory, createSession, getConnectionCount, getFactory, getUrl, isDurable, isTopic, parseBoolean, resetCount, setConnectionCount, setDurable, setFactory, setSubject, 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 © 2011 Apache Software Foundation. All Rights Reserved.