FragmentComplete Event
Fires after each part in an automatic multipart upload is complete.
Syntax
public class DefaultS3clientEventListener implements S3clientEventListener { ... public void fragmentComplete(S3clientFragmentCompleteEvent e) {} ... } public class S3clientFragmentCompleteEvent { public int fragmentNumber; public int fragmentCount; public boolean interrupt; }
Remarks
If, when CreateObject is called, more than SimpleUploadLimit bytes of upload data are present, the class will automatically split the upload data up into parts and perform a multipart upload. During the overall upload process, this event will fire after each part is uploaded, providing an indication of overall upload progress.
FragmentNumber is the number of the current part that has completed. This value starts at 1.
FragmentCount is the total number of parts that will be uploaded.
Interrupt can be set to true to interrupt the upload. The upload may be resumed later.
Refer to CreateObject for more information.
Note: This event is not applicable when ServiceProvider is spGoogleStorage (2); Google Cloud Storage does not support multipart uploads.