org.jlab.coda.cMsg.apps
Class cMsgGetConsumer

java.lang.Object
  extended by org.jlab.coda.cMsg.apps.cMsgGetConsumer

public class cMsgGetConsumer
extends java.lang.Object

This is an example class which creates a cMsg client that synchronously either sends and receives messages by calling cMsg.sendAndGet(org.jlab.coda.cMsg.cMsgMessage, int) or subscribes to a subject & type and receives a response by calling cMsg.subscribeAndGet(java.lang.String, java.lang.String, int). To receive a response to a sendAndGet's send, the cMsgGetResponder must also be running.


Method Summary
static void main(java.lang.String[] args)
          Run as a stand-alone application.
 void run()
          This method is executed as a thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Run as a stand-alone application.


run

public void run()
         throws cMsgException
This method is executed as a thread.

Throws:
cMsgException