Class CreateMessageBatchOptions

java.lang.Object
com.azure.messaging.servicebus.models.CreateMessageBatchOptions

public final class CreateMessageBatchOptions extends Object
The set of options that can be specified when creating an batch of messages. This wrapper will help to limit the messages with maximum allowed size.
See Also:
  • Constructor Details

    • CreateMessageBatchOptions

      public CreateMessageBatchOptions()
  • Method Details

    • setMaximumSizeInBytes

      public CreateMessageBatchOptions setMaximumSizeInBytes(int maximumSizeInBytes)
      Sets the maximum size for the batch of messages.
      Parameters:
      maximumSizeInBytes - The maximum size to allow for the batch of messages.
      Returns:
      The updated CreateMessageBatchOptions object.
    • getMaximumSizeInBytes

      public int getMaximumSizeInBytes()
      Gets the maximum size to allow for the batch of messages, in bytes.
      Returns:
      The maximum size to allow for a single batch of messages, in bytes.