public class MqttConnectorCommonConfiguration extends Object
smallrye-mqtt
connector.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.microprofile.config.Config |
config |
Constructor and Description |
---|
MqttConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new MqttConnectorCommonConfiguration.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.config.Config |
config() |
Boolean |
getAutoCleanSession()
Gets the auto-clean-session value from the configuration.
|
Boolean |
getAutoGeneratedClientId()
Gets the auto-generated-client-id value from the configuration.
|
Boolean |
getAutoKeepAlive()
Gets the auto-keep-alive value from the configuration.
|
String |
getChannel() |
Optional<String> |
getClientId()
Gets the client-id value from the configuration.
|
Integer |
getConnectTimeoutSeconds()
Gets the connect-timeout-seconds value from the configuration.
|
protected <T> Optional<T> |
getFromAlias(String alias,
Class<T> type)
Retrieves the value stored for the given alias.
|
protected <T> T |
getFromAliasWithDefaultValue(String alias,
Class<T> type,
T defaultValue)
Retrieves the value stored for the given alias.
|
String |
getHost()
Gets the host value from the configuration.
|
Integer |
getKeepAliveSeconds()
Gets the keep-alive-seconds value from the configuration.
|
Integer |
getMaxInflightQueue()
Gets the max-inflight-queue value from the configuration.
|
Integer |
getMaxMessageSize()
Gets the max-message-size value from the configuration.
|
Optional<String> |
getPassword()
Gets the password value from the configuration.
|
Optional<Integer> |
getPort()
Gets the port value from the configuration.
|
Integer |
getQos()
Gets the qos value from the configuration.
|
Integer |
getReconnectAttempts()
Gets the reconnect-attempts value from the configuration.
|
Integer |
getReconnectIntervalSeconds()
Gets the reconnect-interval-seconds value from the configuration.
|
Optional<String> |
getServerName()
Gets the server-name value from the configuration.
|
Boolean |
getSsl()
Gets the ssl value from the configuration.
|
Optional<String> |
getTopic()
Gets the topic value from the configuration.
|
Boolean |
getTrustAll()
Gets the trust-all value from the configuration.
|
Optional<String> |
getUsername()
Gets the username value from the configuration.
|
Boolean |
getWillFlag()
Gets the will-flag value from the configuration.
|
Integer |
getWillQos()
Gets the will-qos value from the configuration.
|
Boolean |
getWillRetain()
Gets the will-retain value from the configuration.
|
void |
validate() |
public MqttConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
public org.eclipse.microprofile.config.Config config()
protected <T> Optional<T> getFromAlias(String alias, Class<T> type)
T
- the targeted typealias
- the attribute alias, must not be null
or blanktype
- the targeted typeprotected <T> T getFromAliasWithDefaultValue(String alias, Class<T> type, T defaultValue)
T
- the targeted typealias
- the attribute alias, must not be null
or blanktype
- the targeted typedefaultValue
- the default valuepublic String getChannel()
public Optional<String> getClientId()
public Boolean getAutoGeneratedClientId()
public Boolean getAutoKeepAlive()
public Boolean getSsl()
public Integer getKeepAliveSeconds()
public Integer getMaxInflightQueue()
public Boolean getAutoCleanSession()
public Boolean getWillFlag()
public Boolean getWillRetain()
public Integer getWillQos()
public Integer getMaxMessageSize()
public Integer getReconnectAttempts()
public Integer getReconnectIntervalSeconds()
public Optional<String> getUsername()
public Optional<String> getPassword()
public Integer getConnectTimeoutSeconds()
public Boolean getTrustAll()
public String getHost()
public Optional<Integer> getPort()
public Optional<String> getServerName()
public Optional<String> getTopic()
public Integer getQos()
public void validate()
Copyright © 2018–2020 SmallRye. All rights reserved.