public class Consumer extends Object
Constructor and Description |
---|
Consumer(PApplet parent,
String brokerURI,
String topic)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Closes all connections
|
Session |
getSession()
Returns the JMS Session
|
void |
onMessageArrival(String messageText,
String messageType)
Dispatches the message received by calling the onMessageArrival method of
the parent object
|
static String |
version()
return the version of the library.
|
public static final String VERSION
public void dispose()
public Session getSession()
public void onMessageArrival(String messageText, String messageType)
messageText
- the text of the message receivedmessageType
- the type of the message receivedpublic static String version()
Processing library proJMS by Hauke Altmann. (C) 2012