Enum Class ConsumerHandlingMode
- All Implemented Interfaces:
Serializable, Comparable<ConsumerHandlingMode>, Constable
Controls whether handlers for a consumer are invoked in the tracker thread or offloaded to a worker thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsumerHandlingModeParses a user-facing handling mode value.static ConsumerHandlingModeReturns the enum constant of this class with the specified name.static ConsumerHandlingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Inherit the handling mode from the message-type default consumer, app-wide default, or SDK defaults version. -
SYNC
Invoke handlers in the tracker thread. -
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
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
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 nameNullPointerException- if the argument is null
-
parse
Parses a user-facing handling mode value.- Parameters:
value- configured value- Returns:
- parsed handling mode
-