public class UploadPartRequestFactory extends Object
This allows us to delay creating each UploadPartRequest until we're ready for it, instead of immediately creating thousands of UploadPartRequest objects for each large upload, when we won't need most of those request objects for a while.
Constructor and Description |
---|
UploadPartRequestFactory(PutObjectRequest origReq,
String uploadId,
long optimalPartSize) |
Modifier and Type | Method and Description |
---|---|
UploadPartRequest |
getNextUploadPartRequest() |
int |
getTotalNumberOfParts() |
boolean |
hasMoreRequests() |
public UploadPartRequestFactory(PutObjectRequest origReq, String uploadId, long optimalPartSize)
public boolean hasMoreRequests()
public UploadPartRequest getNextUploadPartRequest()
public int getTotalNumberOfParts()
Copyright © 2022. All rights reserved.