HttpsBatchMessage 类
定义
Builds a batched IoT Hub request body as a JSON array. The batched message has a maximum size of 256 kb.
public class HttpsBatchMessage implements HttpsMessage
- 继承
继承成员
构造函数
HttpsBatchMessage() |
Constructor. Initializes the batch body as an empty JSON array. |
方法
addMessage(HttpsSingleMessage msg) |
Adds a message to the batch.
|
getBody() |
Returns the current batch body as a UTF-8 encoded byte array.
|
getContentType() |
Returns the message content-type as 'application/vnd.microsoft.iothub.json'.
|
getProperties() |
Returns an empty list of properties for the batched message.
|
getSystemProperties() |
It is part of the HttpsMessage interface to get the collection of system message properties. For batch, it just returns a empty Map.
|
numMessages() |
Returns the number of messages currently in the batch.
|