public class RabbitMQConnectorCommonConfiguration extends Object
smallrye-rabbitmq
connector.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.microprofile.config.Config |
config |
Constructor and Description |
---|
RabbitMQConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new RabbitMQConnectorCommonConfiguration.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.config.Config |
config() |
Boolean |
getAutomaticRecoveryEnabled()
Gets the automatic-recovery-enabled value from the configuration.
|
Boolean |
getAutomaticRecoveryOnInitialConnection()
Gets the automatic-recovery-on-initial-connection value from the configuration.
|
String |
getChannel() |
Integer |
getConnectionTimeout()
Gets the connection-timeout value from the configuration.
|
Boolean |
getExchangeAutoDelete()
Gets the exchange.auto-delete value from the configuration.
|
Boolean |
getExchangeDeclare()
Gets the exchange.declare value from the configuration.
|
Boolean |
getExchangeDurable()
Gets the exchange.durable value from the configuration.
|
Optional<String> |
getExchangeName()
Gets the exchange.name value from the configuration.
|
String |
getExchangeType()
Gets the exchange.type 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.
|
Integer |
getHandshakeTimeout()
Gets the handshake-timeout value from the configuration.
|
String |
getHost()
Gets the host value from the configuration.
|
Boolean |
getIncludeProperties()
Gets the include-properties value from the configuration.
|
Integer |
getNetworkRecoveryInterval()
Gets the network-recovery-interval 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.
|
Integer |
getRequestedChannelMax()
Gets the requested-channel-max value from the configuration.
|
Integer |
getRequestedHeartbeat()
Gets the requested-heartbeat value from the configuration.
|
String |
getTracingAttributeHeaders()
Gets the tracing.attribute-headers value from the configuration.
|
Boolean |
getTracingEnabled()
Gets the tracing.enabled value from the configuration.
|
Boolean |
getUseNio()
Gets the use-nio value from the configuration.
|
String |
getUser()
Gets the user value from the configuration.
|
Optional<String> |
getUsername()
Gets the username value from the configuration.
|
String |
getVirtualHost()
Gets the virtual-host value from the configuration.
|
void |
validate() |
public RabbitMQConnectorCommonConfiguration(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 Integer getConnectionTimeout()
public Integer getHandshakeTimeout()
public Boolean getAutomaticRecoveryEnabled()
public Boolean getAutomaticRecoveryOnInitialConnection()
public Integer getReconnectAttempts()
public Integer getReconnectInterval()
public Integer getNetworkRecoveryInterval()
public String getUser()
public Boolean getIncludeProperties()
public Integer getRequestedChannelMax()
public Integer getRequestedHeartbeat()
public Boolean getUseNio()
public String getVirtualHost()
public Optional<String> getExchangeName()
public Boolean getExchangeDurable()
public Boolean getExchangeAutoDelete()
public String getExchangeType()
public Boolean getExchangeDeclare()
public Boolean getTracingEnabled()
public String getTracingAttributeHeaders()
public void validate()
Copyright © 2018–2021 SmallRye. All rights reserved.