Class MqttProperties


  • public final class MqttProperties
    extends java.lang.Object
    MQTT Properties container
    • Constructor Detail

      • MqttProperties

        public MqttProperties()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • getProperty

        public MqttProperties.MqttProperty getProperty​(int propertyId)
        Get property by ID. If there are multiple properties of this type (can be with Subscription ID) then return the first one.
        Parameters:
        propertyId - ID of the property
        Returns:
        a property if it is set, null otherwise
      • getProperties

        public java.util.List<? extends MqttProperties.MqttProperty> getProperties​(int propertyId)
        Get properties by ID. Some properties (Subscription ID and User Properties) may occur multiple times, this method returns all their values in order.
        Parameters:
        propertyId - ID of the property
        Returns:
        all properties having specified ID