Enum Class MultipartRemovalStrategy

java.lang.Object
java.lang.Enum<MultipartRemovalStrategy>
com.linecorp.armeria.server.MultipartRemovalStrategy
All Implemented Interfaces:
Serializable, Comparable<MultipartRemovalStrategy>, java.lang.constant.Constable

@UnstableApi public enum MultipartRemovalStrategy extends Enum<MultipartRemovalStrategy>
Specifies when to remove the temporary files created for multipart requests.
  • Enum Constant Details

    • NEVER

      public static final MultipartRemovalStrategy NEVER
      Never remove the temporary files.

      Warning: This option may cause a disk space leak if the temporary files are not removed manually.

    • ON_RESPONSE_COMPLETION

      public static final MultipartRemovalStrategy ON_RESPONSE_COMPLETION
      Remove the temporary files after the response is fully sent.
  • Method Details

    • values

      public static MultipartRemovalStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MultipartRemovalStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null