Enum Class ConsumerHandlingMode

java.lang.Object
java.lang.Enum<ConsumerHandlingMode>
io.fluxzero.sdk.tracking.ConsumerHandlingMode
All Implemented Interfaces:
Serializable, Comparable<ConsumerHandlingMode>, Constable

public enum ConsumerHandlingMode extends Enum<ConsumerHandlingMode>
Controls whether handlers for a consumer are invoked in the tracker thread or offloaded to a worker thread.
  • Enum Constant Details

    • DEFAULT

      public static final ConsumerHandlingMode DEFAULT
      Inherit the handling mode from the message-type default consumer, app-wide default, or SDK defaults version.
    • SYNC

      public static final ConsumerHandlingMode SYNC
      Invoke handlers in the tracker thread.
    • ASYNC

      public static final ConsumerHandlingMode ASYNC
      Invoke handlers on a worker thread while preserving the Fluxzero tracking context. Messages in the same batch that have the same non-null serialized segment are handled in batch order. Messages with different segments, or without a segment, remain eligible for parallel handling.
  • Method Details

    • values

      public static ConsumerHandlingMode[] 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 ConsumerHandlingMode 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
    • parse

      public static ConsumerHandlingMode parse(String value)
      Parses a user-facing handling mode value.
      Parameters:
      value - configured value
      Returns:
      parsed handling mode