public class UploadMonitor extends java.lang.Object implements java.util.concurrent.Callable<UploadResult>, TransferMonitor
isDone() and
getFuture()| コンストラクタと説明 |
|---|
UploadMonitor(TransferManager manager,
UploadImpl transfer,
java.util.concurrent.ExecutorService threadPool,
UploadCallable multipartUploadCallable,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain)
Constructs a new upload watcher, which immediately submits itself to the
thread pool.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
UploadResult |
call() |
java.util.concurrent.Future<UploadResult> |
getFuture()
Returns a Future to wait on.
|
boolean |
isDone()
Returns whether the transfer is completed.
|
void |
setTimedThreadPool(java.util.concurrent.ScheduledExecutorService timedThreadPool) |
public UploadMonitor(TransferManager manager, UploadImpl transfer, java.util.concurrent.ExecutorService threadPool, UploadCallable multipartUploadCallable, PutObjectRequest putObjectRequest, ProgressListenerChain progressListenerChain)
manager - The TransferManager that owns this upload.transfer - The transfer being processed.threadPool - The ExecutorService to which we should submit new
tasks.multipartUploadCallable - The callable responsible for processing the upload asynchronouslyputObjectRequest - The original putObject requestprogressListenerChain - A chain of listeners that wish to be notified of upload
progresspublic java.util.concurrent.Future<UploadResult> getFuture()
TransferMonitorgetFuture インタフェース内 TransferMonitorpublic boolean isDone()
TransferMonitorisDone インタフェース内 TransferMonitorpublic void setTimedThreadPool(java.util.concurrent.ScheduledExecutorService timedThreadPool)
public UploadResult call() throws java.lang.Exception
call インタフェース内 java.util.concurrent.Callable<UploadResult>java.lang.Exception