Class ConnectorConfig
- java.lang.Object
-
- io.smallrye.reactive.messaging.impl.ConnectorConfig
-
- All Implemented Interfaces:
org.eclipse.microprofile.config.Config
public class ConnectorConfig extends Object implements org.eclipse.microprofile.config.Config
Implementation of config used to configured the different messaging provider / connector.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBROADCAST_PROPERTYName of the attribute configuring the broadcast on a connector.static StringCHANNEL_ENABLED_PROPERTYName of the attribute checking if the channel is enabled (default) or disabled.static StringMERGE_PROPERTYName of the attribute configuring the merge on a connector.
-
Constructor Summary
Constructors Modifier Constructor Description protectedConnectorConfig(String prefix, org.eclipse.microprofile.config.Config overall, String channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<org.eclipse.microprofile.config.spi.ConfigSource>getConfigSources()org.eclipse.microprofile.config.ConfigValuegetConfigValue(String propertyName)<T> Optional<org.eclipse.microprofile.config.spi.Converter<T>>getConverter(Class<T> forType)<T> Optional<T>getOptionalValue(String propertyName, Class<T> propertyType)Iterable<String>getPropertyNames()Gets the lists of config keys for the given connector.<T> TgetValue(String propertyName, Class<T> propertyType)<T> Tunwrap(Class<T> type)
-
-
-
Field Detail
-
CHANNEL_ENABLED_PROPERTY
public static final String CHANNEL_ENABLED_PROPERTY
Name of the attribute checking if the channel is enabled (default) or disabled. The value must be either `true` or `false`.- See Also:
- Constant Field Values
-
BROADCAST_PROPERTY
public static final String BROADCAST_PROPERTY
Name of the attribute configuring the broadcast on a connector.- See Also:
- Constant Field Values
-
MERGE_PROPERTY
public static final String MERGE_PROPERTY
Name of the attribute configuring the merge on a connector.- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public <T> T getValue(String propertyName, Class<T> propertyType)
- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.Config
-
getConfigValue
public org.eclipse.microprofile.config.ConfigValue getConfigValue(String propertyName)
- Specified by:
getConfigValuein interfaceorg.eclipse.microprofile.config.Config
-
getOptionalValue
public <T> Optional<T> getOptionalValue(String propertyName, Class<T> propertyType)
- Specified by:
getOptionalValuein interfaceorg.eclipse.microprofile.config.Config
-
getPropertyNames
public Iterable<String> getPropertyNames()
Gets the lists of config keys for the given connector. Note that the list contains property names from the config and env variables. It includes keys from the connector config and channel config.- Specified by:
getPropertyNamesin interfaceorg.eclipse.microprofile.config.Config- Returns:
- the list of keys
-
getConfigSources
public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources()
- Specified by:
getConfigSourcesin interfaceorg.eclipse.microprofile.config.Config
-
getConverter
public <T> Optional<org.eclipse.microprofile.config.spi.Converter<T>> getConverter(Class<T> forType)
- Specified by:
getConverterin interfaceorg.eclipse.microprofile.config.Config
-
unwrap
public <T> T unwrap(Class<T> type)
- Specified by:
unwrapin interfaceorg.eclipse.microprofile.config.Config
-
-