Package RTL.SMQ
Class AndroidSMQ
java.lang.Object
RTL.SMQ.SMQ
RTL.SMQ.AndroidSMQ
AndroidSMQ is specifically designed for being used in an Android
GUI application. Android applications are not thread safe and SMQ
can, therefore, be difficult to use together with Android
applications. The AndroidSMQ class is designed such that the events
triggered by SMQ are run in the context of the Android GUI
thread. This means that you do not have to do any thread
synchronization with AndroidSMQ.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
ConstructorDescriptionAndroidSMQ
(URL smqUrl, TrustManager[] trustMgr, HostnameVerifier hostVerifier, Proxy proxy, IntfOnClose onClose) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean flush, IntfOnClose onClose) See SMQ.close for details.void
connectAsync
(byte[] uid, String credentials, String info, AndroidSMQ.OnSmqConnectionListener onSmqConnectionListener) Methods inherited from class RTL.SMQ.SMQ
connect, connected, create, create, createsub, getETid, getIpAddr, getRand, init, observe, observe, publish, publish, publish, publish, publish, publish, publish, subscribe, subscribe, subtopic2tid, tid2subtopic, tid2topic, topic2tid, unobserve, unobserve, unsubscribe, unsubscribe
-
Constructor Details
-
AndroidSMQ
public AndroidSMQ(URL smqUrl, TrustManager[] trustMgr, HostnameVerifier hostVerifier, Proxy proxy, IntfOnClose onClose)
-
-
Method Details
-
connectAsync
public void connectAsync(byte[] uid, String credentials, String info, AndroidSMQ.OnSmqConnectionListener onSmqConnectionListener) -
close
See SMQ.close for details.
-