Java 在多端口请求中配置通知

Java 在多端口请求中配置通知,java,android,file-upload,Java,Android,File Upload,我正在实现'net.gotev:uploadservice:4.5.1'将图像上载到我的服务器。我写了下面的代码,但并没有配置获取异常消息通知,所以文件并没有上传。当我尝试使用setNotificationConfig(new UploadNotificationConfig())配置通知时,它要求在new UploadNotificationConfig()中传递6个参数 这是我的完整代码 try { String uploadId = UUID.randomUUID(

我正在实现'net.gotev:uploadservice:4.5.1'将图像上载到我的服务器。我写了下面的代码,但并没有配置获取异常消息通知,所以文件并没有上传。当我尝试使用
setNotificationConfig(new UploadNotificationConfig())
配置通知时,它要求在
new UploadNotificationConfig()
中传递6个参数

这是我的完整代码

try {
            String uploadId = UUID.randomUUID().toString();

            //Creating a multi part request
            new MultipartUploadRequest(this, upload_path)
                    .addFileToUpload(currentPhotoPath, "image") //Adding file
                    .addParameter("name", image_file_name) //Adding text parameter to the request
                    .setMaxRetries(2).setNotificationConfig(new UploadNotificationConfig())
                    .setUploadID(uploadId)
                    .startUpload(); //Starting the upload



        } catch (Exception exc) {
            Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();
        }
我尝试了,但未能成功地传递所需的参数并使方法正常工作。有人能帮我修一下吗

还附上了解释所需参数类型的图像。我理解前2个,但对于其他4个,我不知道如何工作