library/src/main/java/com/kdgregory/aws/utils/s3/MultipartUpload.java
/**
     *  Completes the upload, waiting for all outstanding tasks.
     */
Completes the upload, waiting for all outstanding tasks.
Completes the upload waiting for all outstanding tasks .
public void complete()
    {
        logger.debug("waiting for upload tasks of s3://" + bucket + "/" + key);
        List<PartETag> partTags = new ArrayList<>();
        for (Future<PartETag> future : futures)
        {
            partTags.add(unwrap(future));
        }
        logger.debug("completing multi-part upload for s3://" + bucket + "/" + key);
        CompleteMultipartUploadRequest request = new CompleteMultipartUploadRequest()
                                                  .withBucketName(bucket)
                                                  .withKey(key)
                                                  .withUploadId(uploadId)
                                                  .withPartETags(partTags);
        client.completeMultipartUpload(request);
        logger.debug("completed multi-part upload for s3://" + bucket + "/" + key);
    }
public void complete ( ) { logger . debug ( "waiting for upload tasks of s3://" + bucket + "/" + key ) ; List < PartETag > partTags = new ArrayList < > ( ) ; for ( Future < PartETag > future : futures ) { partTags . add ( unwrap ( future ) ) ; } logger . debug ( "completing multi-part upload for s3://" + bucket + "/" + key ) ; CompleteMultipartUploadRequest request = new CompleteMultipartUploadRequest ( ) . withBucketName ( bucket ) . withKey ( key ) . withUploadId ( uploadId ) . withPartETags ( partTags ) ; client . completeMultipartUpload ( request ) ; logger . debug ( "completed multi-part upload for s3://" + bucket + "/" + key ) ; }
Completes the upload, waiting for all outstanding tasks.
Completes the upload waiting for all outstanding tasks .