All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.sdk.iot.device.BatchMessage Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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