com.amazonaws.services.s3.transfer.internal

## クラス UploadMonitor

- java.lang.Object
- - com.amazonaws.services.s3.transfer.internal.UploadMonitor

- すべての実装されたインタフェース:
    TransferMonitor, java.util.concurrent.Callable<UploadResult>

      public class UploadMonitor
      extends java.lang.Object
      implements java.util.concurrent.Callable<UploadResult>, TransferMonitor

  Manages an upload by periodically checking to see if the upload is done, and returning a result if so. Otherwise, schedules a copy of itself to be run in the future and returns null. When waiting on the result of this class via a Future object, clients must call `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)`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### UploadMonitor

          public 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.
      パラメータ:
        `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 asynchronously
        `putObjectRequest` - The original putObject request
        `progressListenerChain` - A chain of listeners that wish to be notified of upload progress

  - ### メソッドの詳細

    - #### getFuture

          public java.util.concurrent.Future<UploadResult> getFuture()

      インタフェースからコピーされた説明: `TransferMonitor`
      Returns a Future to wait on. Calling get() on this future will block while the transfer progress is checked, but its return does not guarantee the transfer is complete. Call isDone() to check for completion. Repeated calls to getFuture() can return different objects.
      定義:
        `getFuture` インタフェース内 `TransferMonitor`

    - #### isDone

          public boolean isDone()

      インタフェースからコピーされた説明: `TransferMonitor`
      Returns whether the transfer is completed. A failure or cancellation counts as completion as well; to gather any exceptions thrown, call getFuture().get()
      定義:
        `isDone` インタフェース内 `TransferMonitor`

    - #### setTimedThreadPool

          public void setTimedThreadPool(java.util.concurrent.ScheduledExecutorService timedThreadPool)

    - #### call

          public UploadResult call()
                            throws java.lang.Exception

      定義:
        `call` インタフェース内 `java.util.concurrent.Callable<UploadResult>`
      例外:
        `java.lang.Exception`