Interface PollingContext


public interface PollingContext
  • Method Details

    • getMqttTopic

      @NotNull @NotNull String getMqttTopic()
      Returns:
      the topic on which the data will be available
    • getTagName

      @NotNull @NotNull String getTagName()
    • getMqttQos

      int getMqttQos()
      Returns:
      the Quality-of-Service for the MQTT publish containing the data
    • getMessageHandlingOptions

      @NotNull @NotNull MessageHandlingOptions getMessageHandlingOptions()
      Returns:
      how the data will be published (one publish for all tags, a separate publish for each tag)
    • getIncludeTimestamp

      @NotNull @NotNull Boolean getIncludeTimestamp()
      Returns:
      whether the MQTT publish payload should contain the timestamp
    • getIncludeTagNames

      @NotNull @NotNull Boolean getIncludeTagNames()
      Returns:
      whether the MQTT publish payload should contain the tag names
    • getUserProperties

      @NotNull @NotNull List<MqttUserProperty> getUserProperties()
      Returns:
      a list of MQTT user properties that are added to the MQTT publish
    • getJsonPayloadCreator

      @Nullable default @Nullable JsonPayloadCreator getJsonPayloadCreator()
      Returns:
      optional custom implementation of the JsonPayloadCreator to overwrite the default creation of the mqtt payloads
    • getMessageExpiryInterval

      @Nullable default @Nullable Long getMessageExpiryInterval()
      Returns:
      optional custom implementation of the JsonPayloadCreator to overwrite the default creation of the mqtt payloads