Class ConnectorConfig
java.lang.Object
io.smallrye.reactive.messaging.providers.impl.ConnectorConfig
- All Implemented Interfaces:
org.eclipse.microprofile.config.Config
- Direct Known Subclasses:
ConcurrencyConnectorConfig,OverrideConnectorConfig
Implementation of config used to configured the different messaging provider / connector.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the attribute configuring the broadcast on a connector.static final StringName of the attribute checking if the channel is enabled (default) or disabled.protected final Stringprotected final Stringstatic final StringName of the attribute configuring the merge on a connector.protected final Stringprotected final org.eclipse.microprofile.config.Configprotected final StringFields inherited from interface org.eclipse.microprofile.config.Config
PROFILE, PROPERTY_EXPRESSIONS_ENABLED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectorConfig(String prefix, org.eclipse.microprofile.config.Config overall, String channel) protectedConnectorConfig(String prefix, org.eclipse.microprofile.config.Config overall, String connector, String channel) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringchannelKey(String keyName) static StringchannelPrefix(String prefix, String name) protected StringconnectorKey(String keyName) protected <T> Tprotected <T> Optional<T>convertOptional(String rawValue, Class<T> propertyType) Iterable<org.eclipse.microprofile.config.spi.ConfigSource>org.eclipse.microprofile.config.ConfigValuegetConfigValue(String propertyName) static StringgetConnectorAttribute(String prefix, org.eclipse.microprofile.config.Config overall, String channel) <T> Optional<org.eclipse.microprofile.config.spi.Converter<T>>getConverter(Class<T> forType) <T> Optional<T>getOptionalValue(String propertyName, Class<T> propertyType) Gets the lists of config keys for the given connector.<T> Tprotected booleannameExists(String name) protected String<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.config.Config
getOptionalValues, getValues
-
Field Details
-
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:
-
BROADCAST_PROPERTY
Name of the attribute configuring the broadcast on a connector.- See Also:
-
MERGE_PROPERTY
Name of the attribute configuring the merge on a connector.- See Also:
-
prefix
-
overall
protected final org.eclipse.microprofile.config.Config overall -
name
-
connector
-
channelPrefix
-
-
Constructor Details
-
ConnectorConfig
-
ConnectorConfig
-
-
Method Details
-
getConnectorAttribute
-
channelPrefix
-
channelKey
-
connectorKey
-
getValue
- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.Config
-
getConfigValue
- Specified by:
getConfigValuein interfaceorg.eclipse.microprofile.config.Config
-
getOptionalValue
- Specified by:
getOptionalValuein interfaceorg.eclipse.microprofile.config.Config
-
convert
-
convertOptional
-
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
-
toAlpha
-
nameExists
-
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
- Specified by:
unwrapin interfaceorg.eclipse.microprofile.config.Config
-