Interface PollingContext
-
public interface PollingContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringgetDestinationMqttTopic()@NotNull BooleangetIncludeTagNames()@NotNull BooleangetIncludeTimestamp()@NotNull MessageHandlingOptionsgetMessageHandlingOptions()intgetQos()@NotNull List<UserProperty>getUserProperties()
-
-
-
Method Detail
-
getDestinationMqttTopic
@Nullable @Nullable String getDestinationMqttTopic()
- Returns:
- the topic on which the data will be available
-
getQos
int getQos()
- 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<UserProperty> getUserProperties()
- Returns:
- a list of MQTT user properties that are added to the MQTT publish
-
-