code: public void setMaxDeliveryCount(int maxDeliveryCount) {
          if (maxDeliveryCount < ManagementClientConstants.MIN_ALLOWED_MAX_DELIVERYCOUNT)
          {
              throw new IllegalArgumentException(
                      String.format("The value must be greater than %s.",
                              ManagementClientConstants.MIN_ALLOWED_MAX_DELIVERYCOUNT));
          }
  
          this.maxDeliveryCount = maxDeliveryCount;
      }
docs: The maximum delivery count of a message before it is dead-lettered.
  The delivery count is increased when a message is received in {@link com.microsoft.azure.servicebus.ReceiveMode#PEEKLOCK} mode
  and didn't complete the message before the message lock expired.
  @param maxDeliveryCount - Minimum value is 1.