org.apache.qpid.example.pubsub
Class Publisher

java.lang.Object
  extended by org.apache.qpid.example.pubsub.Client
      extended by org.apache.qpid.example.pubsub.Publisher

public class Publisher
extends Client

A simple Publisher example. The class can take two arguments. java Publisher Where: destination is either 'topic' or 'queue' (Default: topic) msgCount is the number of messages to send (Default : 100)


Field Summary
(package private)  int _msgCount
           
 
Fields inherited from class org.apache.qpid.example.pubsub.Client
_connection, _destination, _session, _setup
 
Constructor Summary
Publisher(String destination, int msgCount)
           
 
Method Summary
static void main(String[] args)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_msgCount

int _msgCount
Constructor Detail

Publisher

public Publisher(String destination,
                 int msgCount)
Method Detail

start

public void start()
Specified by:
start in class Client

main

public static void main(String[] args)


Licensed to the Apache Software Foundation