@Internal public class BambooS3TransferManager extends Object
TransferManager
that adds some synchronization methods.
The supported usage pattern is: first use all copy/upload/download methods, then call waitForCompletionAndShutdown()
.
The object is not supposed to be used after waitForCompletionAndShutdown()
has been called.Constructor and Description |
---|
BambooS3TransferManager(com.amazonaws.services.s3.AmazonS3 s3Client) |
Modifier and Type | Method and Description |
---|---|
void |
copy(com.amazonaws.services.s3.model.CopyObjectRequest copyObjectRequest)
see
TransferManager.copy(com.amazonaws.services.s3.model.CopyObjectRequest) |
void |
download(com.amazonaws.services.s3.model.GetObjectRequest getObjectRequest,
File file)
see
TransferManager.download(com.amazonaws.services.s3.model.GetObjectRequest, java.io.File) |
void |
upload(com.amazonaws.services.s3.model.PutObjectRequest putObjectRequest)
see
TransferManager.upload(com.amazonaws.services.s3.model.PutObjectRequest) |
void |
waitForCompletionAndShutdown()
Waits for all transfers to complete and shuts down the transfer manager.
|
public BambooS3TransferManager(com.amazonaws.services.s3.AmazonS3 s3Client)
public void upload(com.amazonaws.services.s3.model.PutObjectRequest putObjectRequest) throws IOException
TransferManager.upload(com.amazonaws.services.s3.model.PutObjectRequest)
IOException
public void download(com.amazonaws.services.s3.model.GetObjectRequest getObjectRequest, File file) throws IOException
TransferManager.download(com.amazonaws.services.s3.model.GetObjectRequest, java.io.File)
IOException
public void copy(com.amazonaws.services.s3.model.CopyObjectRequest copyObjectRequest) throws IOException
TransferManager.copy(com.amazonaws.services.s3.model.CopyObjectRequest)
IOException
public void waitForCompletionAndShutdown() throws IOException
IOException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.