public class MqttClient extends CrtResource
CrtResource.ResourceInstance| Constructor and Description |
|---|
MqttClient(ClientBootstrap clientBootstrap)
Creates an MqttClient with no TLS from the provided
ClientBootstrap |
MqttClient(ClientBootstrap clientBootstrap,
TlsContext context)
Creates an MqttClient from the provided
ClientBootstrap and TlsContext |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canReleaseReferencesImmediately()
Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits.
|
TlsContext |
getTlsContext() |
protected void |
releaseNativeHandle()
Cleans up the native resources associated with this client.
|
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResourcespublic MqttClient(ClientBootstrap clientBootstrap) throws CrtRuntimeException
ClientBootstrapclientBootstrap - The ClientBootstrap to useCrtRuntimeException - If the system is unable to allocate space for a native MQTT client structurepublic MqttClient(ClientBootstrap clientBootstrap, TlsContext context) throws CrtRuntimeException
ClientBootstrap and TlsContextclientBootstrap - The ClientBootstrap to usecontext - the tls context to useCrtRuntimeException - If the system is unable to allocate space for a native MQTT client structurepublic TlsContext getTlsContext()
protected void releaseNativeHandle()
releaseNativeHandle in class CrtResourceprotected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately in class CrtResourceCopyright © 2021. All rights reserved.