Enum S3MetaRequestOptions.MetaRequestType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<S3MetaRequestOptions.MetaRequestType>
    Enclosing class:
    S3MetaRequestOptions

    public static enum S3MetaRequestOptions.MetaRequestType
    extends java.lang.Enum<S3MetaRequestOptions.MetaRequestType>
    A Meta Request represents a group of generated requests that are being done on behalf of the original request. For example, one large GetObject request can be transformed into a series of ranged GetObject requests that are executed in parallel to improve throughput. The MetaRequestType is a hint of transformation to be applied.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      COPY_OBJECT
      The CopyObject meta request performs a multi-part copy using multiple S3 UploadPartCopy requests in parallel, or bypasses a CopyObject request to S3 if the object size is not large enough for a multipart upload.
      DEFAULT
      The Default meta request type sends any request to S3 as-is (with no transformation).
      GET_OBJECT
      The GetObject request will be split into a series of ranged GetObject requests that are executed in parallel to improve throughput, when possible.
      PUT_OBJECT
      The PutObject request will be split into MultiPart uploads that are executed in parallel to improve throughput, when possible.
    • Enum Constant Detail

      • DEFAULT

        public static final S3MetaRequestOptions.MetaRequestType DEFAULT
        The Default meta request type sends any request to S3 as-is (with no transformation). For example, it can be used to pass a CreateBucket request.
      • GET_OBJECT

        public static final S3MetaRequestOptions.MetaRequestType GET_OBJECT
        The GetObject request will be split into a series of ranged GetObject requests that are executed in parallel to improve throughput, when possible.
      • PUT_OBJECT

        public static final S3MetaRequestOptions.MetaRequestType PUT_OBJECT
        The PutObject request will be split into MultiPart uploads that are executed in parallel to improve throughput, when possible.
      • COPY_OBJECT

        public static final S3MetaRequestOptions.MetaRequestType COPY_OBJECT
        The CopyObject meta request performs a multi-part copy using multiple S3 UploadPartCopy requests in parallel, or bypasses a CopyObject request to S3 if the object size is not large enough for a multipart upload.
    • Method Detail

      • values

        public static S3MetaRequestOptions.MetaRequestType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (S3MetaRequestOptions.MetaRequestType c : S3MetaRequestOptions.MetaRequestType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static S3MetaRequestOptions.MetaRequestType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNativeValue

        public int getNativeValue()