public class KafkaConnectorCommonConfiguration extends Object
smallrye-kafka
connector.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.microprofile.config.Config |
config |
Constructor and Description |
---|
KafkaConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new KafkaConnectorCommonConfiguration.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.config.Config |
config() |
String |
getBootstrapServers()
Gets the bootstrap.servers value from the configuration.
|
String |
getChannel() |
Boolean |
getCloudEvents()
Gets the cloud-events 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.
|
Boolean |
getHealthEnabled()
Gets the health-enabled value from the configuration.
|
Boolean |
getHealthReadinessEnabled()
Gets the health-readiness-enabled value from the configuration.
|
Long |
getHealthReadinessTimeout()
Gets the health-readiness-timeout value from the configuration.
|
Boolean |
getHealthReadinessTopicVerification()
Gets the health-readiness-topic-verification value from the configuration.
|
Optional<String> |
getTopic()
Gets the topic value from the configuration.
|
Boolean |
getTracingEnabled()
Gets the tracing-enabled value from the configuration.
|
void |
validate() |
public KafkaConnectorCommonConfiguration(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 String getBootstrapServers()
public Optional<String> getTopic()
public Boolean getHealthEnabled()
public Boolean getHealthReadinessEnabled()
public Boolean getHealthReadinessTopicVerification()
public Long getHealthReadinessTimeout()
public Boolean getTracingEnabled()
public Boolean getCloudEvents()
public void validate()
Copyright © 2018–2021 SmallRye. All rights reserved.