Enum Class FormRouteCompleter.SubscriptionMode

java.lang.Object
java.lang.Enum<FormRouteCompleter.SubscriptionMode>
io.micronaut.http.server.multipart.FormRouteCompleter.SubscriptionMode
All Implemented Interfaces:
Serializable, Comparable<FormRouteCompleter.SubscriptionMode>, Constable
Enclosing class:
FormRouteCompleter

public static enum FormRouteCompleter.SubscriptionMode extends Enum<FormRouteCompleter.SubscriptionMode>
Since:
5.0.0
Author:
Jonas Konrad
  • Enum Constant Details

    • WAITS_FOR_FULL

      public static final FormRouteCompleter.SubscriptionMode WAITS_FOR_FULL
      Before the route can execute, these form fields must have been fully received, including all their data. Note that if the caller cancels their subscription at some point, that means it doesn't stand in the way of executing the route anymore.
    • WAITS_FOR_START

      public static final FormRouteCompleter.SubscriptionMode WAITS_FOR_START
      Before the route can execute, the headers of the first form field of this name must be received, but the field body will not be consumed until the route actually executes.
    • ASYNC

      public static final FormRouteCompleter.SubscriptionMode ASYNC
      This parameter does not need to be waited for the route to execute, but at the same time, the parameter will not be consumed until the route does execute.
    • ASYNC_NO_BACKPRESSURE

      public static final FormRouteCompleter.SubscriptionMode ASYNC_NO_BACKPRESSURE
      This parameter does not need to be waited for the route to execute, and it applies no backpressure, meaning it won't block other fields.
  • Method Details

    • values

      public static FormRouteCompleter.SubscriptionMode[] 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 FormRouteCompleter.SubscriptionMode 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