public class JmsConnectorCommonConfiguration extends Object
smallrye-jms
connector.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.microprofile.config.Config |
config |
Constructor and Description |
---|
JmsConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new JmsConnectorCommonConfiguration.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.config.Config |
config() |
String |
getChannel() |
Optional<String> |
getClientId()
Gets the client-id value from the configuration.
|
Optional<String> |
getConnectionFactoryName()
Gets the connection-factory-name value from the configuration.
|
Optional<String> |
getDestination()
Gets the destination value from the configuration.
|
String |
getDestinationType()
Gets the destination-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.
|
Optional<String> |
getPassword()
Gets the password value from the configuration.
|
String |
getSessionMode()
Gets the session-mode value from the configuration.
|
Optional<String> |
getUsername()
Gets the username value from the configuration.
|
void |
validate() |
public JmsConnectorCommonConfiguration(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> getConnectionFactoryName()
public Optional<String> getUsername()
public Optional<String> getPassword()
public String getSessionMode()
public Optional<String> getClientId()
public Optional<String> getDestination()
public String getDestinationType()
public void validate()
Copyright © 2018–2021 SmallRye. All rights reserved.