com.amazonaws.services.s3.transfer.internal

## クラス TransferManagerUtils

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

-     public class TransferManagerUtils
      extends java.lang.Object

  Internal utilities for multipart uploads with TransferManager.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `TransferManagerUtils()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `static long` | `calculateOptimalPartSize(PutObjectRequest putObjectRequest, TransferManagerConfiguration configuration)` Returns the optimal part size, in bytes, for each individual part upload in a multipart upload.
    `static java.util.concurrent.ThreadPoolExecutor` | `createDefaultExecutorService()` Returns a new thread pool configured with the default settings.
    `static long` | `getContentLength(PutObjectRequest putObjectRequest)` Returns the size of the data in this request, otherwise -1 if the content length is unknown.
    `static java.io.File` | `getRequestFile(PutObjectRequest putObjectRequest)` Convenience method for getting the file specified in a request.
    `static boolean` | `isUploadParallelizable(PutObjectRequest putObjectRequest, boolean isUsingEncryption)` Returns true if the specified upload request can use parallel part uploads for increased performance.
    `static boolean` | `shouldUseMultipartUpload(PutObjectRequest putObjectRequest, TransferManagerConfiguration configuration)` Returns true if the the specified request should be processed as a multipart upload (instead of a single part upload).

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

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

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

    - #### TransferManagerUtils

          public TransferManagerUtils()

  - ### メソッドの詳細

    - #### createDefaultExecutorService

          public static java.util.concurrent.ThreadPoolExecutor createDefaultExecutorService()

      Returns a new thread pool configured with the default settings.
      戻り値:
        A new thread pool configured with the default settings.

    - #### isUploadParallelizable

          public static boolean isUploadParallelizable(PutObjectRequest putObjectRequest,
                                       boolean isUsingEncryption)

      Returns true if the specified upload request can use parallel part uploads for increased performance.
      パラメータ:
        `putObjectRequest` - The request to check.
        `isUsingEncryption` - True if the upload is an encrypted upload, otherwise false.
      戻り値:
        True if this request can use parallel part uploads for faster uploads.

    - #### getContentLength

          public static long getContentLength(PutObjectRequest putObjectRequest)

      Returns the size of the data in this request, otherwise -1 if the content length is unknown.
      パラメータ:
        `putObjectRequest` - The request to check.
      戻り値:
        The size of the data in this request, otherwise -1 if the size of the data is unknown.

    - #### calculateOptimalPartSize

          public static long calculateOptimalPartSize(PutObjectRequest putObjectRequest,
                                      TransferManagerConfiguration configuration)

      Returns the optimal part size, in bytes, for each individual part upload in a multipart upload.
      パラメータ:
        `putObjectRequest` - The request containing all the details of the upload.
        `configuration` - Configuration values to use when calculating size.
      戻り値:
        The optimal part size, in bytes, for each individual part upload in a multipart upload.

    - #### shouldUseMultipartUpload

          public static boolean shouldUseMultipartUpload(PutObjectRequest putObjectRequest,
                                         TransferManagerConfiguration configuration)

      Returns true if the the specified request should be processed as a multipart upload (instead of a single part upload).
      パラメータ:
        `putObjectRequest` - The request containing all the details of the upload.
        `configuration` - Configuration settings controlling how transfer manager processes requests.
      戻り値:
        True if the the specified request should be processed as a multipart upload.

    - #### getRequestFile

          public static java.io.File getRequestFile(PutObjectRequest putObjectRequest)

      Convenience method for getting the file specified in a request.