Interface ServiceBusEntityOptionsProvider

All Known Implementing Classes:
ServiceBusConsumerProperties, ServiceBusProducerProperties

public interface ServiceBusEntityOptionsProvider
Properties to define a service bus entity
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets 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.
  • Method Details

    • getMaxSizeInMegabytes

      Long getMaxSizeInMegabytes()
      Gets the maximum size of the queue/topic in megabytes, which is the size of memory allocated for the queue/topic.
      Returns:
      the maxSizeInMegabytes value.
    • getDefaultMessageTimeToLive

      Duration getDefaultMessageTimeToLive()
      Gets 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.
      Returns:
      the defaultMessageTimeToLive value.