com.microsoft.azure.sdk.iot.device.BatchMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-device-client Show documentation
Show all versions of iot-device-client Show documentation
The Microsoft Azure IoT Device SDK for Java
package com.microsoft.azure.sdk.iot.device;
import java.util.List;
/**
* Used to construct batch messages to be sent to the IoT Hub {@link com.microsoft.azure.sdk.iot.device.InternalClient#sendEventsAsync(List, MessagesSentCallback, Object)}
*/
public class BatchMessage extends Message
{
/**
* List of nested messages.
*/
private final List nestedMessages;
/**
* Creates a batch message
* This constructor is internal and can only be called within the com.microsoft.azure.sdk.iot.device package.
* @param messages The messages that will be sent as a batch
*/
BatchMessage(List messages)
{
this.nestedMessages = messages;
}
/**
* Gets the list of nested messages.
* @return All nested messages.
*/
public List getNestedMessages()
{
return this.nestedMessages;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy