public class AmqpConnectorCommonConfiguration extends Object
smallrye-amqp
connector.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.microprofile.config.Config |
config |
Constructor and Description |
---|
AmqpConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new AmqpConnectorCommonConfiguration.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.config.Config |
config() |
Optional<String> |
getAddress()
Gets the address value from the configuration.
|
String |
getChannel() |
Optional<String> |
getClientOptionsName()
Gets the client-options-name value from the configuration.
|
Integer |
getConnectTimeout()
Gets the connect-timeout value from the configuration.
|
Optional<String> |
getContainerId()
Gets the container-id 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.
|
Optional<String> |
getLinkName()
Gets the link-name value from the configuration.
|
Optional<String> |
getPassword()
Gets the password value from the configuration.
|
Integer |
getPort()
Gets the port value from the configuration.
|
Integer |
getReconnectAttempts()
Gets the reconnect-attempts value from the configuration.
|
Integer |
getReconnectInterval()
Gets the reconnect-interval value from the configuration.
|
Optional<String> |
getSniServerName()
Gets the sni-server-name value from the configuration.
|
Optional<String> |
getUsername()
Gets the username value from the configuration.
|
Boolean |
getUseSsl()
Gets the use-ssl value from the configuration.
|
Optional<String> |
getVirtualHost()
Gets the virtual-host value from the configuration.
|
void |
validate() |
public AmqpConnectorCommonConfiguration(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> getUsername()
public Optional<String> getPassword()
public String getHost()
public Integer getPort()
public Boolean getUseSsl()
public Optional<String> getVirtualHost()
public Optional<String> getSniServerName()
public Integer getReconnectAttempts()
public Integer getReconnectInterval()
public Integer getConnectTimeout()
public Optional<String> getContainerId()
public Optional<String> getAddress()
public Optional<String> getLinkName()
public Optional<String> getClientOptionsName()
public void validate()
Copyright © 2018–2021 SmallRye. All rights reserved.