public class CopyMonitor extends Object implements Callable<CopyResult>, TransferMonitor
isDone()
and getFuture()
Modifier and Type | Method and Description |
---|---|
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()
TransferMonitor
getFuture
in interface TransferMonitor
public boolean isDone()
TransferMonitor
isDone
in interface TransferMonitor
public 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
in interface Callable<CopyResult>
Exception
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.