public class CopyMonitor extends Object implements Callable<CopyResult>, TransferMonitor
| 限定符和类型 | 方法和说明 |
|---|---|
CopyResult |
call() |
static CopyMonitor |
create(TransferManager manager,
CopyImpl transfer,
ExecutorService threadPool,
CopyCallable multipartCopyCallable,
CopyObjectRequest copyObjectRequest,
ProgressListenerChain progressListenerChain)
Constructs a new watcher for copy operation, and then immediately submits
it to the thread pool.
|
Future<CopyResult> |
getFuture()
Returns a Future to wait on.
|
boolean |
isDone()
Returns whether the transfer is completed.
|
public Future<CopyResult> getFuture()
TransferMonitorgetFuture 在接口中 TransferMonitorpublic boolean isDone()
TransferMonitorisDone 在接口中 TransferMonitorpublic static CopyMonitor create(TransferManager manager, CopyImpl transfer, ExecutorService threadPool, CopyCallable multipartCopyCallable, CopyObjectRequest copyObjectRequest, ProgressListenerChain progressListenerChain)
manager - The TransferManager that owns this copy request.threadPool - The ExecutorService to which we should submit new
tasks.multipartCopyCallable - The callable responsible for processing the copy
asynchronouslycopyObjectRequest - The original CopyObject requestpublic CopyResult call() throws Exception
call 在接口中 Callable<CopyResult>ExceptionCopyright © 2020. All rights reserved.