Class UserProperty
- java.lang.Object
-
- com.hivemq.adapter.sdk.api.config.UserProperty
-
public class UserProperty extends Object
Class to model user properties in thePollingContextof protocol adapters.
-
-
Constructor Summary
Constructors Constructor Description UserProperty()UserProperty(@Nullable String propertyName, @Nullable String propertyValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable Object o)@NotNull StringgetName()@NotNull StringgetValue()inthashCode()voidsetName(@NotNull String propertyName)voidsetValue(@NotNull String propertyValue)@NotNull StringtoString()
-
-
-
Method Detail
-
setName
public void setName(@NotNull @NotNull String propertyName)
- Parameters:
propertyName- the name for this user property. The same name may be used for multiple user properties of a MQTT publish.
-
setValue
public void setValue(@NotNull @NotNull String propertyValue)
- Parameters:
propertyValue- the value of the user property.
-
-