Class AzureServiceBusJmsProperties
java.lang.Object
com.azure.spring.cloud.autoconfigure.jms.properties.AzureServiceBusJmsProperties
- All Implemented Interfaces:
com.azure.spring.cloud.core.properties.PasswordlessProperties,com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider,com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider,org.springframework.beans.factory.InitializingBean
@ConfigurationProperties(prefix="spring.jms.servicebus")
public class AzureServiceBusJmsProperties
extends Object
implements org.springframework.beans.factory.InitializingBean, com.azure.spring.cloud.core.properties.PasswordlessProperties
ConfigurationProperties for configuring Azure Service Bus JMS.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProperties to configureJmsListenerforAbstractJmsListenerContainerFactory.static classProperties to configureJmsDefaultPrefetchPolicyforJmsConnectionFactory.Nested classes/interfaces inherited from interface com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider
com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider.AzureEnvironmentOptions, com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider.CloudType, com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider.ProfileOptionsNested classes/interfaces inherited from interface com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider
com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidValidate spring.jms.servicebus related properties.Get the connection string to connect to a Service Bus namespace.Get the credential properties.Get the connection idle timeout duration.Get the listener related properties.Get the Service Bus namespace.org.springframework.boot.autoconfigure.jms.JmsPoolConnectionFactoryPropertiesgetPool()The properties for a pooled connection factory.Get the prefetch policy related properties.Get the pricing tier for a Service Bus namespace.Get the profileGet the scopes required for the access token.Get the Service Bus topic client ID.booleanWhether to enable Service Bus JMS autoconfiguration.booleanWhether to enable connections authenticating with Azure AD, default is false.voidsetConnectionString(String connectionString) Set the connection string to connect to a Service Bus namespace.voidsetCredential(TokenCredentialConfigurationProperties credential) Set the credential properties.voidsetEnabled(boolean enabled) Set whether to enable Service Bus JMS autoconfiguation.voidsetIdleTimeout(Duration idleTimeout) Set the connection idle timeout duration.voidsetNamespace(String namespace) Set the Service Bus namespace.voidsetPasswordlessEnabled(boolean passwordlessEnabled) Set the value to enable/disable connections authenticating with Azure AD.voidsetPricingTier(String pricingTier) Set the pricing tier for a Service Bus namespace.voidSet the profilevoidSet the scopes required for the access token.voidsetTopicClientId(String topicClientId) Set the Service Bus topic client ID.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.spring.cloud.core.properties.PasswordlessProperties
toPasswordlessProperties
-
Field Details
-
PREFIX
Service Bus JMS properties prefix.- See Also:
-
-
Constructor Details
-
AzureServiceBusJmsProperties
public AzureServiceBusJmsProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether to enable Service Bus JMS autoconfiguration.- Returns:
- Whether to enable Service Bus autoconfiguration
-
setEnabled
public void setEnabled(boolean enabled) Set whether to enable Service Bus JMS autoconfiguation.- Parameters:
enabled- whether to enable Service Bus autoconfiguration.
-
getPool
public org.springframework.boot.autoconfigure.jms.JmsPoolConnectionFactoryProperties getPool()The properties for a pooled connection factory.- Returns:
- the properties for a pooled connection factory.
-
getConnectionString
Get the connection string to connect to a Service Bus namespace.- Returns:
- the connection string to connect to a Service Bus namespace.
-
setConnectionString
Set the connection string to connect to a Service Bus namespace.- Parameters:
connectionString- the connection string to connect to a Service Bus namespace.
-
getTopicClientId
Get the Service Bus topic client ID.- Returns:
- the Service Bus topic client ID.
-
setTopicClientId
Set the Service Bus topic client ID.- Parameters:
topicClientId- the Service Bus topic client ID.
-
getPricingTier
Get the pricing tier for a Service Bus namespace.- Returns:
- the pricing tier for a Service Bus namespace.
-
setPricingTier
Set the pricing tier for a Service Bus namespace.- Parameters:
pricingTier- the pricing tier for a Service Bus namespace.
-
getIdleTimeout
Get the connection idle timeout duration.- Returns:
- the connection idle timeout duration.
-
setIdleTimeout
Set the connection idle timeout duration.- Parameters:
idleTimeout- the connection idle timeout duration.
-
getListener
Get the listener related properties.- Returns:
- the listener related properties.
-
getPrefetchPolicy
Get the prefetch policy related properties.- Returns:
- the prefetch policy related properties.
-
getNamespace
Get the Service Bus namespace.- Returns:
- the Service Bus namespace.
-
setNamespace
Set the Service Bus namespace.- Parameters:
namespace- the Service Bus namespace.
-
getScopes
Get the scopes required for the access token.- Specified by:
getScopesin interfacecom.azure.spring.cloud.core.properties.PasswordlessProperties- Returns:
- scopes required for the access token
-
setScopes
Set the scopes required for the access token.- Specified by:
setScopesin interfacecom.azure.spring.cloud.core.properties.PasswordlessProperties- Parameters:
scopes- the scopes required for the access token
-
isPasswordlessEnabled
public boolean isPasswordlessEnabled()Whether to enable connections authenticating with Azure AD, default is false.- Specified by:
isPasswordlessEnabledin interfacecom.azure.spring.cloud.core.properties.PasswordlessProperties- Returns:
- enable connections authenticating with Azure AD if true, otherwise false.
-
setPasswordlessEnabled
public void setPasswordlessEnabled(boolean passwordlessEnabled) Set the value to enable/disable connections authenticating with Azure AD. If not set, by default the value is false.- Specified by:
setPasswordlessEnabledin interfacecom.azure.spring.cloud.core.properties.PasswordlessProperties- Parameters:
passwordlessEnabled- the passwordlessEnabled
-
getProfile
Get the profile- Specified by:
getProfilein interfacecom.azure.spring.cloud.core.provider.AzureProfileOptionsProvider- Returns:
- the profile
-
setProfile
Set the profile- Parameters:
profile- the profile properties related to an Azure subscription
-
getCredential
Get the credential properties.- Specified by:
getCredentialin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider- Returns:
- the credential properties.
-
setCredential
Set the credential properties.- Parameters:
credential- the credential properties
-
afterPropertiesSet
Validate spring.jms.servicebus related properties.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IllegalArgumentException- If connectionString is empty.Exception
-