Class MqttConsumerProperties
java.lang.Object
org.springframework.cloud.fn.consumer.mqtt.MqttConsumerProperties
@Validated
@ConfigurationProperties("mqtt.consumer")
public class MqttConsumerProperties
extends Object
Properties for the Mqtt Consumer.
- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotBlank @Size(min=1,max=23) String
@org.hibernate.validator.constraints.Range(min=0L, max=2L) int
getQos()
@NotBlank String
getTopic()
boolean
isAsync()
boolean
void
setAsync
(boolean async) void
setCharset
(String charset) void
setClientId
(String clientId) void
setQos
(int qos) void
setRetained
(boolean retained) void
-
Constructor Details
-
MqttConsumerProperties
public MqttConsumerProperties()
-
-
Method Details
-
getQos
@Range(min=0L, max=2L) public @org.hibernate.validator.constraints.Range(min=0L, max=2L) int getQos() -
isRetained
public boolean isRetained() -
setQos
public void setQos(int qos) -
setRetained
public void setRetained(boolean retained) -
getClientId
-
setClientId
-
getTopic
-
setTopic
-
getCharset
-
setCharset
-
isAsync
public boolean isAsync() -
setAsync
public void setAsync(boolean async)
-