Class ServiceBusProducerProperties
java.lang.Object
com.azure.spring.cloud.core.implementation.properties.AzureSdkProperties
com.azure.spring.cloud.core.implementation.properties.AzureAmqpSdkProperties
com.azure.spring.messaging.servicebus.core.properties.CommonProperties
com.azure.spring.messaging.servicebus.core.properties.ProducerProperties
com.azure.spring.cloud.stream.binder.servicebus.core.properties.ServiceBusProducerProperties
- All Implemented Interfaces:
com.azure.spring.cloud.core.properties.AzureProperties, com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider, com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider, com.azure.spring.cloud.core.provider.ClientOptionsProvider, com.azure.spring.cloud.core.provider.connectionstring.ConnectionStringProvider, com.azure.spring.cloud.core.provider.ProxyOptionsProvider, com.azure.spring.cloud.core.provider.RetryOptionsProvider, com.azure.spring.cloud.service.implementation.servicebus.properties.ServiceBusClientCommonProperties, com.azure.spring.cloud.service.implementation.servicebus.properties.ServiceBusSenderClientProperties, ServiceBusEntityOptionsProvider
public class ServiceBusProducerProperties
extends com.azure.spring.messaging.servicebus.core.properties.ProducerProperties
implements ServiceBusEntityOptionsProvider
Service Bus producer properties.
-
Nested Class Summary
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.ClientOptionsProvider
com.azure.spring.cloud.core.provider.ClientOptionsProvider.AmqpClientOptions, com.azure.spring.cloud.core.provider.ClientOptionsProvider.ClientOptions, com.azure.spring.cloud.core.provider.ClientOptionsProvider.HttpClientOptionsNested classes/interfaces inherited from interface com.azure.spring.cloud.core.provider.ProxyOptionsProvider
com.azure.spring.cloud.core.provider.ProxyOptionsProvider.AmqpProxyOptions, com.azure.spring.cloud.core.provider.ProxyOptionsProvider.HttpProxyOptions, com.azure.spring.cloud.core.provider.ProxyOptionsProvider.ProxyOptionsNested classes/interfaces inherited from interface com.azure.spring.cloud.core.provider.RetryOptionsProvider
com.azure.spring.cloud.core.provider.RetryOptionsProvider.AmqpRetryOptions, com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryMode, com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptionsNested classes/interfaces inherited from interface com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider
com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default message time to live value.Gets the maximum size of the queue/topic in megabytes, which is the size of memory allocated for the queue/topic.Get send time out.booleanisSync()Check whether is sync.voidsetDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value.voidsetMaxSizeInMegabytes(Long maxSizeInMegabytes) Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue.voidsetSendTimeout(Duration sendTimeout) Set send time out.voidsetSync(boolean sync) Set sync.Methods inherited from class com.azure.spring.messaging.servicebus.core.properties.CommonProperties
getConnectionString, getCustomEndpointAddress, getDomainName, getEntityName, getEntityType, getFullyQualifiedNamespace, getNamespace, setConnectionString, setCustomEndpointAddress, setDomainName, setEntityName, setEntityType, setNamespaceMethods inherited from class com.azure.spring.cloud.core.implementation.properties.AzureAmqpSdkProperties
getClient, getProxy, getRetryMethods inherited from class com.azure.spring.cloud.core.implementation.properties.AzureSdkProperties
getCredential, getProfileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider
getProfileMethods inherited from interface com.azure.spring.cloud.core.provider.ClientOptionsProvider
getClientMethods inherited from interface com.azure.spring.cloud.core.provider.connectionstring.ConnectionStringProvider
getConnectionStringMethods inherited from interface com.azure.spring.cloud.core.provider.ProxyOptionsProvider
getProxyMethods inherited from interface com.azure.spring.cloud.core.provider.RetryOptionsProvider
getRetryMethods inherited from interface com.azure.spring.cloud.service.implementation.servicebus.properties.ServiceBusClientCommonProperties
getCustomEndpointAddress, getDomainName, getEntityName, getEntityType, getFullyQualifiedNamespace, getNamespaceMethods inherited from interface com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider
getCredential
-
Constructor Details
-
ServiceBusProducerProperties
public ServiceBusProducerProperties()Create an instance ofServiceBusProducerProperties.
-
-
Method Details
-
isSync
public boolean isSync()Check whether is sync.- Returns:
- true if is sync,false otherwise
-
setSync
public void setSync(boolean sync) Set sync.- Parameters:
sync- the sync
-
getSendTimeout
-
setSendTimeout
Set send time out.- Parameters:
sendTimeout- the send time out
-
getMaxSizeInMegabytes
Description copied from interface:ServiceBusEntityOptionsProviderGets the maximum size of the queue/topic in megabytes, which is the size of memory allocated for the queue/topic.- Specified by:
getMaxSizeInMegabytesin interfaceServiceBusEntityOptionsProvider- Returns:
- the maxSizeInMegabytes value.
-
setMaxSizeInMegabytes
Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue.- Parameters:
maxSizeInMegabytes- the maxSizeInMegabytes value to set.
-
getDefaultMessageTimeToLive
Description copied from interface:ServiceBusEntityOptionsProviderGets the default message time to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.Messages older than their TimeToLive value will expire and no longer be retained in the message store. Subscribers will be unable to receive expired messages. A message can have a lower TimeToLive value than that specified here, but by default TimeToLive is set to MaxValue. Therefore, this property becomes the default time to live value applied to messages.- Specified by:
getDefaultMessageTimeToLivein interfaceServiceBusEntityOptionsProvider- Returns:
- the defaultMessageTimeToLive value.
-
setDefaultMessageTimeToLive
Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.- Parameters:
defaultMessageTimeToLive- the defaultMessageTimeToLive value to set.
-