public class CopyCallable extends Object implements Callable<CopyResult>
TransferManager
in carrying out the copy requests. The call
method checks if multi-part copy request can be carried out on the Amazon S3
object. This is done by checking the size of the Amazon S3 object being
copied.
If the size of the object is greater than the preferred size limit, then copy operation is carried out as multi part copy requests to the server.
If the size of the object is less than the preferred size limit, the copy operation is carried out in a single request where the Amazon S3 object is transferred as one chunk from the source bucket to the destination bucket.
Constructor and Description |
---|
CopyCallable(TransferManager transferManager,
ExecutorService threadPool,
CopyImpl copy,
CopyObjectRequest copyObjectRequest,
ObjectMetadata metadata,
ProgressListenerChain progressListenerChain) |
Modifier and Type | Method and Description |
---|---|
CopyResult |
call() |
boolean |
isMultipartCopy()
Returns true if this CopyCallable is processing a multi-part copy.
|
public CopyCallable(TransferManager transferManager, ExecutorService threadPool, CopyImpl copy, CopyObjectRequest copyObjectRequest, ObjectMetadata metadata, ProgressListenerChain progressListenerChain)
public boolean isMultipartCopy()
public CopyResult call() throws Exception
call
in interface Callable<CopyResult>
Exception
Copyright © 2024. All rights reserved.