Enum SignalType

java.lang.Object
java.lang.Enum<SignalType>
reactor.core.publisher.SignalType
All Implemented Interfaces:
Serializable, Comparable<SignalType>, Constable

public enum SignalType extends Enum<SignalType>
Reactive Stream signal types
  • Enum Constant Details

    • SUBSCRIBE

      public static final SignalType SUBSCRIBE
      A signal when the subscription is triggered
    • REQUEST

      public static final SignalType REQUEST
      A signal when a request is made through the subscription
    • CANCEL

      public static final SignalType CANCEL
      A signal when the subscription is cancelled
    • ON_SUBSCRIBE

      public static final SignalType ON_SUBSCRIBE
      A signal when an operator receives a subscription
    • ON_NEXT

      public static final SignalType ON_NEXT
      A signal when an operator receives an emitted value
    • ON_ERROR

      public static final SignalType ON_ERROR
      A signal when an operator receives an error
    • ON_COMPLETE

      public static final SignalType ON_COMPLETE
      A signal when an operator completes
    • AFTER_TERMINATE

      public static final SignalType AFTER_TERMINATE
      A signal when an operator completes
    • CURRENT_CONTEXT

      public static final SignalType CURRENT_CONTEXT
      A context read signal
    • ON_CONTEXT

      public static final SignalType ON_CONTEXT
      A context update signal
  • Method Details

    • values

      public static SignalType[] 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 SignalType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SignalType>