-
Notifications
You must be signed in to change notification settings - Fork 224
/
com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.yml
360 lines (360 loc) · 33.1 KB
/
com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
### YamlMime:JavaType
uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport"
name: "IotHubTransport"
nameWithType: "IotHubTransport"
summary: "Manages queueing of message sending, receiving and callbacks."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"java.lang.Object.clone()?alt=java.lang.Object.clone&text=clone\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.equals(java.lang.Object)?alt=java.lang.Object.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.finalize()?alt=java.lang.Object.finalize&text=finalize\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.getClass()?alt=java.lang.Object.getClass&text=getClass\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.hashCode()?alt=java.lang.Object.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notify()?alt=java.lang.Object.notify&text=notify\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notifyAll()?alt=java.lang.Object.notifyAll&text=notifyAll\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.toString()?alt=java.lang.Object.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait()?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long,int)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
syntax: "public class **IotHubTransport**</br> implements <xref href=\"com.microsoft.azure.sdk.iot.device.transport.IotHubListener?alt=com.microsoft.azure.sdk.iot.device.transport.IotHubListener&text=IotHubListener\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.IotHubTransport(com.microsoft.azure.sdk.iot.device.DeviceClientConfig,com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback,boolean)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.IotHubTransport(DeviceClientConfig defaultConfig, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback, boolean isMultiplexing)"
name: "IotHubTransport(DeviceClientConfig defaultConfig, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback, boolean isMultiplexing)"
nameWithType: "IotHubTransport.IotHubTransport(DeviceClientConfig defaultConfig, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback, boolean isMultiplexing)"
summary: "Constructor for an Iot<wbr>Hub<wbr>Transport object with default values"
parameters:
- description: "the config used for opening connections, retrieving retry policy, and checking protocol"
name: "defaultConfig"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.DeviceClientConfig?alt=com.microsoft.azure.sdk.iot.device.DeviceClientConfig&text=DeviceClientConfig\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceIOConnectionStatusChangeCallback"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback?alt=com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback&text=IotHubConnectionStatusChangeCallback\" data-throw-if-not-resolved=\"False\" />"
- name: "isMultiplexing"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
syntax: "public IotHubTransport(DeviceClientConfig defaultConfig, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback, boolean isMultiplexing)"
exceptions:
- description: "if defaultConfig is null"
type: "<xref href=\"java.lang.IllegalArgumentException?alt=java.lang.IllegalArgumentException&text=IllegalArgumentException\" data-throw-if-not-resolved=\"False\" />"
desc: "Constructor for an IotHubTransport object with default values"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.IotHubTransport(java.lang.String,com.microsoft.azure.sdk.iot.device.IotHubClientProtocol,javax.net.ssl.SSLContext,com.microsoft.azure.sdk.iot.device.ProxySettings,com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.IotHubTransport(String hostName, IotHubClientProtocol protocol, SSLContext sslContext, ProxySettings proxySettings, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback)"
name: "IotHubTransport(String hostName, IotHubClientProtocol protocol, SSLContext sslContext, ProxySettings proxySettings, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback)"
nameWithType: "IotHubTransport.IotHubTransport(String hostName, IotHubClientProtocol protocol, SSLContext sslContext, ProxySettings proxySettings, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback)"
parameters:
- name: "hostName"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- name: "protocol"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubClientProtocol?alt=com.microsoft.azure.sdk.iot.device.IotHubClientProtocol&text=IotHubClientProtocol\" data-throw-if-not-resolved=\"False\" />"
- name: "sslContext"
type: "<xref href=\"javax.net.ssl.SSLContext?alt=javax.net.ssl.SSLContext&text=SSLContext\" data-throw-if-not-resolved=\"False\" />"
- name: "proxySettings"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.ProxySettings?alt=com.microsoft.azure.sdk.iot.device.ProxySettings&text=ProxySettings\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceIOConnectionStatusChangeCallback"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback?alt=com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback&text=IotHubConnectionStatusChangeCallback\" data-throw-if-not-resolved=\"False\" />"
syntax: "public IotHubTransport(String hostName, IotHubClientProtocol protocol, SSLContext sslContext, ProxySettings proxySettings, IotHubConnectionStatusChangeCallback deviceIOConnectionStatusChangeCallback)"
exceptions:
- type: "<xref href=\"java.lang.IllegalArgumentException?alt=java.lang.IllegalArgumentException&text=IllegalArgumentException\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.addMessage(com.microsoft.azure.sdk.iot.device.Message,com.microsoft.azure.sdk.iot.device.IotHubEventCallback,java.lang.Object,java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.addMessage(Message message, IotHubEventCallback callback, Object callbackContext, String deviceId)"
name: "addMessage(Message message, IotHubEventCallback callback, Object callbackContext, String deviceId)"
nameWithType: "IotHubTransport.addMessage(Message message, IotHubEventCallback callback, Object callbackContext, String deviceId)"
summary: "Adds a message to the transport queue."
parameters:
- description: "the message to be sent."
name: "message"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.Message?alt=com.microsoft.azure.sdk.iot.device.Message&text=Message\" data-throw-if-not-resolved=\"False\" />"
- description: "the callback to be invoked when a response for the\n message is received."
name: "callback"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubEventCallback?alt=com.microsoft.azure.sdk.iot.device.IotHubEventCallback&text=IotHubEventCallback\" data-throw-if-not-resolved=\"False\" />"
- description: "the context to be passed in when the callback is"
name: "callbackContext"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
- description: "the Id of the device that is sending this message.\n invoked."
name: "deviceId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void addMessage(Message message, IotHubEventCallback callback, Object callbackContext, String deviceId)"
desc: "Adds a message to the transport queue."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.close(com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeReason,java.lang.Throwable)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.close(IotHubConnectionStatusChangeReason reason, Throwable cause)"
name: "close(IotHubConnectionStatusChangeReason reason, Throwable cause)"
nameWithType: "IotHubTransport.close(IotHubConnectionStatusChangeReason reason, Throwable cause)"
summary: "Closes all resources used to communicate with an IoT Hub."
parameters:
- description: "the reason to close this connection, to be reported over connection status change callback"
name: "reason"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeReason?alt=com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeReason&text=IotHubConnectionStatusChangeReason\" data-throw-if-not-resolved=\"False\" />"
- description: "the cause of why this connection is closing, to be reported over connection status change callback"
name: "cause"
type: "<xref href=\"java.lang.Throwable?alt=java.lang.Throwable&text=Throwable\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void close(IotHubConnectionStatusChangeReason reason, Throwable cause)"
exceptions:
- description: "if an error occurs in closing the transport."
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.exceptions.DeviceClientException?alt=com.microsoft.azure.sdk.iot.device.exceptions.DeviceClientException&text=DeviceClientException\" data-throw-if-not-resolved=\"False\" />"
desc: "Closes all resources used to communicate with an IoT Hub. Once `close()` is called, the transport is no longer usable. If the transport is already closed, the function shall do nothing."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.getProtocol()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.getProtocol()"
name: "getProtocol()"
nameWithType: "IotHubTransport.getProtocol()"
syntax: "public IotHubClientProtocol getProtocol()"
returns:
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubClientProtocol?alt=com.microsoft.azure.sdk.iot.device.IotHubClientProtocol&text=IotHubClientProtocol\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.getReceiveThreadLock()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.getReceiveThreadLock()"
name: "getReceiveThreadLock()"
nameWithType: "IotHubTransport.getReceiveThreadLock()"
syntax: "public Object getReceiveThreadLock()"
returns:
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.getSendThreadLock()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.getSendThreadLock()"
name: "getSendThreadLock()"
nameWithType: "IotHubTransport.getSendThreadLock()"
syntax: "public Object getSendThreadLock()"
returns:
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.handleMessage()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.handleMessage()"
name: "handleMessage()"
nameWithType: "IotHubTransport.handleMessage()"
summary: "Invokes the message callback if a message is found and responds to the IoT Hub on how the processed message should be handled by the IoT Hub."
syntax: "public void handleMessage()"
exceptions:
- description: "if the server could not be reached."
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.exceptions.DeviceClientException?alt=com.microsoft.azure.sdk.iot.device.exceptions.DeviceClientException&text=DeviceClientException\" data-throw-if-not-resolved=\"False\" />"
desc: "Invokes the message callback if a message is found and responds to the IoT Hub on how the processed message should be handled by the IoT Hub.\n\nIf no message callback is set, the function will do nothing."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.hasCallbacksToExecute()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.hasCallbacksToExecute()"
name: "hasCallbacksToExecute()"
nameWithType: "IotHubTransport.hasCallbacksToExecute()"
syntax: "public boolean hasCallbacksToExecute()"
returns:
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.hasMessagesToSend()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.hasMessagesToSend()"
name: "hasMessagesToSend()"
nameWithType: "IotHubTransport.hasMessagesToSend()"
syntax: "public boolean hasMessagesToSend()"
returns:
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.hasReceivedMessagesToHandle()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.hasReceivedMessagesToHandle()"
name: "hasReceivedMessagesToHandle()"
nameWithType: "IotHubTransport.hasReceivedMessagesToHandle()"
syntax: "public boolean hasReceivedMessagesToHandle()"
returns:
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.invokeCallbacks()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.invokeCallbacks()"
name: "invokeCallbacks()"
nameWithType: "IotHubTransport.invokeCallbacks()"
summary: "Invokes the callbacks for all completed requests."
syntax: "public void invokeCallbacks()"
desc: "Invokes the callbacks for all completed requests."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.isClosed()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.isClosed()"
name: "isClosed()"
nameWithType: "IotHubTransport.isClosed()"
syntax: "public boolean isClosed()"
returns:
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.isEmpty()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.isEmpty()"
name: "isEmpty()"
nameWithType: "IotHubTransport.isEmpty()"
summary: "Returns `true` if the transport has no more messages to handle, and `false` otherwise."
syntax: "public boolean isEmpty()"
desc: "Returns `true` if the transport has no more messages to handle, and `false` otherwise."
returns:
description: "<code>true</code> if the transport has no more messages to handle,\n and <code>false</code> otherwise."
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onConnectionEstablished(java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onConnectionEstablished(String connectionId)"
name: "onConnectionEstablished(String connectionId)"
nameWithType: "IotHubTransport.onConnectionEstablished(String connectionId)"
summary: "Callback to be fired when the connection has been successfully established"
parameters:
- name: "connectionId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onConnectionEstablished(String connectionId)"
desc: "Callback to be fired when the connection has been successfully established"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onConnectionLost(java.lang.Throwable,java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onConnectionLost(Throwable e, String connectionId)"
name: "onConnectionLost(Throwable e, String connectionId)"
nameWithType: "IotHubTransport.onConnectionLost(Throwable e, String connectionId)"
summary: "Callback to be fired when connection has been lost"
parameters:
- name: "e"
type: "<xref href=\"java.lang.Throwable?alt=java.lang.Throwable&text=Throwable\" data-throw-if-not-resolved=\"False\" />"
- name: "connectionId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onConnectionLost(Throwable e, String connectionId)"
desc: "Callback to be fired when connection has been lost"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMessageReceived(com.microsoft.azure.sdk.iot.device.transport.IotHubTransportMessage,java.lang.Throwable)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMessageReceived(IotHubTransportMessage message, Throwable e)"
name: "onMessageReceived(IotHubTransportMessage message, Throwable e)"
nameWithType: "IotHubTransport.onMessageReceived(IotHubTransportMessage message, Throwable e)"
summary: "Callback to be fired when a transport message has been received."
parameters:
- name: "message"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.transport.IotHubTransportMessage?alt=com.microsoft.azure.sdk.iot.device.transport.IotHubTransportMessage&text=IotHubTransportMessage\" data-throw-if-not-resolved=\"False\" />"
- name: "e"
type: "<xref href=\"java.lang.Throwable?alt=java.lang.Throwable&text=Throwable\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onMessageReceived(IotHubTransportMessage message, Throwable e)"
desc: "Callback to be fired when a transport message has been received."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMessageSent(com.microsoft.azure.sdk.iot.device.Message,java.lang.String,java.lang.Throwable)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMessageSent(Message message, String deviceId, Throwable e)"
name: "onMessageSent(Message message, String deviceId, Throwable e)"
nameWithType: "IotHubTransport.onMessageSent(Message message, String deviceId, Throwable e)"
summary: "Callback to be fired when a message that the transport client sent has been acknowledged by Iot Hub"
parameters:
- name: "message"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.Message?alt=com.microsoft.azure.sdk.iot.device.Message&text=Message\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- name: "e"
type: "<xref href=\"java.lang.Throwable?alt=java.lang.Throwable&text=Throwable\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onMessageSent(Message message, String deviceId, Throwable e)"
desc: "Callback to be fired when a message that the transport client sent has been acknowledged by Iot Hub"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMultiplexedDeviceSessionEstablished(java.lang.String,java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMultiplexedDeviceSessionEstablished(String connectionId, String deviceId)"
name: "onMultiplexedDeviceSessionEstablished(String connectionId, String deviceId)"
nameWithType: "IotHubTransport.onMultiplexedDeviceSessionEstablished(String connectionId, String deviceId)"
summary: "Callback to be fired when the multiplexed connection establishes a new device session."
parameters:
- name: "connectionId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onMultiplexedDeviceSessionEstablished(String connectionId, String deviceId)"
desc: "Callback to be fired when the multiplexed connection establishes a new device session."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMultiplexedDeviceSessionLost(java.lang.Throwable,java.lang.String,java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMultiplexedDeviceSessionLost(Throwable e, String connectionId, String deviceId)"
name: "onMultiplexedDeviceSessionLost(Throwable e, String connectionId, String deviceId)"
nameWithType: "IotHubTransport.onMultiplexedDeviceSessionLost(Throwable e, String connectionId, String deviceId)"
summary: "Callback to be fired when the multiplexed connection loses a device session."
parameters:
- name: "e"
type: "<xref href=\"java.lang.Throwable?alt=java.lang.Throwable&text=Throwable\" data-throw-if-not-resolved=\"False\" />"
- name: "connectionId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onMultiplexedDeviceSessionLost(Throwable e, String connectionId, String deviceId)"
desc: "Callback to be fired when the multiplexed connection loses a device session."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMultiplexedDeviceSessionRegistrationFailed(java.lang.String,java.lang.String,java.lang.Exception)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.onMultiplexedDeviceSessionRegistrationFailed(String connectionId, String deviceId, Exception e)"
name: "onMultiplexedDeviceSessionRegistrationFailed(String connectionId, String deviceId, Exception e)"
nameWithType: "IotHubTransport.onMultiplexedDeviceSessionRegistrationFailed(String connectionId, String deviceId, Exception e)"
summary: "Callback to be fired when the multiplexed connection fails to register a device session."
parameters:
- name: "connectionId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- name: "e"
type: "<xref href=\"java.lang.Exception?alt=java.lang.Exception&text=Exception\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void onMultiplexedDeviceSessionRegistrationFailed(String connectionId, String deviceId, Exception e)"
desc: "Callback to be fired when the multiplexed connection fails to register a device session."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.open()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.open()"
name: "open()"
nameWithType: "IotHubTransport.open()"
summary: "Establishes a communication channel with an IoT Hub."
syntax: "public void open()"
exceptions:
- description: "if a communication channel cannot be established."
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.exceptions.TransportException?alt=com.microsoft.azure.sdk.iot.device.exceptions.TransportException&text=TransportException\" data-throw-if-not-resolved=\"False\" />"
desc: "Establishes a communication channel with an IoT Hub. If a channel is already open, the function shall do nothing.\n\nIf reconnection is occurring when this is called, this function shall block and wait for the reconnection to finish before trying to open the connection"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerConnectionStateCallback(com.microsoft.azure.sdk.iot.device.IotHubConnectionStateCallback,java.lang.Object)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerConnectionStateCallback(IotHubConnectionStateCallback callback, Object callbackContext)"
name: "registerConnectionStateCallback(IotHubConnectionStateCallback callback, Object callbackContext)"
nameWithType: "IotHubTransport.registerConnectionStateCallback(IotHubConnectionStateCallback callback, Object callbackContext)"
summary: "Registers a callback to be executed whenever the connection to the IoT Hub is lost or established."
parameters:
- description: "the callback to be called."
name: "callback"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubConnectionStateCallback?alt=com.microsoft.azure.sdk.iot.device.IotHubConnectionStateCallback&text=IotHubConnectionStateCallback\" data-throw-if-not-resolved=\"False\" />"
- description: "a context to be passed to the callback. Can be\n <code>null</code> if no callback is provided."
name: "callbackContext"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void registerConnectionStateCallback(IotHubConnectionStateCallback callback, Object callbackContext)"
desc: "Registers a callback to be executed whenever the connection to the IoT Hub is lost or established."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerConnectionStatusChangeCallback(com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback,java.lang.Object,java.lang.String)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerConnectionStatusChangeCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext, String deviceId)"
name: "registerConnectionStatusChangeCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext, String deviceId)"
nameWithType: "IotHubTransport.registerConnectionStatusChangeCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext, String deviceId)"
summary: "Registers a callback to be executed whenever the connection status to the IoT Hub has changed."
parameters:
- description: "the callback to be called. Can be null if callbackContext is not null"
name: "callback"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback?alt=com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback&text=IotHubConnectionStatusChangeCallback\" data-throw-if-not-resolved=\"False\" />"
- description: "a context to be passed to the callback. Can be <code>null</code>."
name: "callbackContext"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
- name: "deviceId"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void registerConnectionStatusChangeCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext, String deviceId)"
desc: "Registers a callback to be executed whenever the connection status to the IoT Hub has changed."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerMultiplexedDeviceClient(java.util.List<com.microsoft.azure.sdk.iot.device.DeviceClientConfig>,long)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
name: "registerMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
nameWithType: "IotHubTransport.registerMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
parameters:
- name: "configs"
type: "<xref href=\"java.util.List?alt=java.util.List&text=List\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.microsoft.azure.sdk.iot.device.DeviceClientConfig?alt=com.microsoft.azure.sdk.iot.device.DeviceClientConfig&text=DeviceClientConfig\" data-throw-if-not-resolved=\"False\" />>"
- name: "timeoutMilliseconds"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void registerMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
exceptions:
- type: "<xref href=\"java.lang.InterruptedException?alt=java.lang.InterruptedException&text=InterruptedException\" data-throw-if-not-resolved=\"False\" />"
- type: "<xref href=\"com.microsoft.azure.sdk.iot.device.exceptions.MultiplexingClientException?alt=com.microsoft.azure.sdk.iot.device.exceptions.MultiplexingClientException&text=MultiplexingClientException\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerMultiplexingConnectionStateCallback(com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback,java.lang.Object)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.registerMultiplexingConnectionStateCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext)"
name: "registerMultiplexingConnectionStateCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext)"
nameWithType: "IotHubTransport.registerMultiplexingConnectionStateCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext)"
parameters:
- name: "callback"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback?alt=com.microsoft.azure.sdk.iot.device.IotHubConnectionStatusChangeCallback&text=IotHubConnectionStatusChangeCallback\" data-throw-if-not-resolved=\"False\" />"
- name: "callbackContext"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void registerMultiplexingConnectionStateCallback(IotHubConnectionStatusChangeCallback callback, Object callbackContext)"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.sendMessages()"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.sendMessages()"
name: "sendMessages()"
nameWithType: "IotHubTransport.sendMessages()"
summary: "Sends all messages on the transport queue."
syntax: "public void sendMessages()"
desc: "Sends all messages on the transport queue. If a previous send attempt had failed, the function will attempt to resend the messages in the previous attempt."
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.setMultiplexingRetryPolicy(com.microsoft.azure.sdk.iot.device.transport.RetryPolicy)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.setMultiplexingRetryPolicy(RetryPolicy retryPolicy)"
name: "setMultiplexingRetryPolicy(RetryPolicy retryPolicy)"
nameWithType: "IotHubTransport.setMultiplexingRetryPolicy(RetryPolicy retryPolicy)"
parameters:
- name: "retryPolicy"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.transport.RetryPolicy?alt=com.microsoft.azure.sdk.iot.device.transport.RetryPolicy&text=RetryPolicy\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void setMultiplexingRetryPolicy(RetryPolicy retryPolicy)"
- uid: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.unregisterMultiplexedDeviceClient(java.util.List<com.microsoft.azure.sdk.iot.device.DeviceClientConfig>,long)"
fullName: "com.microsoft.azure.sdk.iot.device.transport.IotHubTransport.unregisterMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
name: "unregisterMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
nameWithType: "IotHubTransport.unregisterMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
parameters:
- name: "configs"
type: "<xref href=\"java.util.List?alt=java.util.List&text=List\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.microsoft.azure.sdk.iot.device.DeviceClientConfig?alt=com.microsoft.azure.sdk.iot.device.DeviceClientConfig&text=DeviceClientConfig\" data-throw-if-not-resolved=\"False\" />>"
- name: "timeoutMilliseconds"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
syntax: "public void unregisterMultiplexedDeviceClient(List<DeviceClientConfig> configs, long timeoutMilliseconds)"
exceptions:
- type: "<xref href=\"java.lang.InterruptedException?alt=java.lang.InterruptedException&text=InterruptedException\" data-throw-if-not-resolved=\"False\" />"
- type: "<xref href=\"com.microsoft.azure.sdk.iot.device.exceptions.MultiplexingClientException?alt=com.microsoft.azure.sdk.iot.device.exceptions.MultiplexingClientException&text=MultiplexingClientException\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Manages queueing of message sending, receiving and callbacks. Manages notifying users of connection status change updates"
implements:
- "<xref href=\"com.microsoft.azure.sdk.iot.device.transport.IotHubListener?alt=com.microsoft.azure.sdk.iot.device.transport.IotHubListener&text=IotHubListener\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.microsoft.azure.sdk.iot.device.transport"
artifact: com.microsoft.azure.sdk.iot:iot-device-client:1.30.1