Package reactor.core

Enum Scannable.Attr.RunStyle

java.lang.Object
java.lang.Enum<Scannable.Attr.RunStyle>
reactor.core.Scannable.Attr.RunStyle
All Implemented Interfaces:
Serializable, Comparable<Scannable.Attr.RunStyle>, Constable
Enclosing class:
Scannable.Attr<T>

public static enum Scannable.Attr.RunStyle extends Enum<Scannable.Attr.RunStyle>
An Enum enumerating the different styles an operator can run : their Enum.ordinal() reflects the level of confidence in their running mode
  • Enum Constant Details

    • UNKNOWN

      public static final Scannable.Attr.RunStyle UNKNOWN
      no guarantees can be given on the running mode (default value, weakest level of guarantee)
    • ASYNC

      public static final Scannable.Attr.RunStyle ASYNC
      the operator may change threads while running
    • SYNC

      public static final Scannable.Attr.RunStyle SYNC
      guarantees the operator doesn't change threads (strongest level of guarantee)
  • Method Details

    • values

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

      public static Scannable.Attr.RunStyle valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null