public class MQTTSubscriber
extends java.lang.Thread
| Constructor and Description |
|---|
MQTTSubscriber(java.lang.String ipandport,
java.lang.String name,
java.lang.String topic,
int qoslevel)
A consctuctor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
j2se.MQTTFogServer.CallBack |
getCallback() |
MatlabCallbackQueue |
getQueue()
Users can use this method to obtain the message queue, and extract the message from it.
|
java.lang.Double |
getStaleTimeSec() |
void |
run()
Core function for this class.
|
void |
setSTOP()
Stop this subscriber
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic MQTTSubscriber(java.lang.String ipandport,
java.lang.String name,
java.lang.String topic,
int qoslevel)
ipandport, - the IP and port you would like to connect to.name, - a name for this clienttopic, - a topic for MQTT messageqoslevel - public void setSTOP()
public MatlabCallbackQueue getQueue()
public java.lang.Double getStaleTimeSec()
public j2se.MQTTFogServer.CallBack getCallback()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread