Enum Class OversizedSseStrategy
- All Implemented Interfaces:
- Serializable,- Comparable<OversizedSseStrategy>,- Constable
Strategy for handling oversized SSE messages that exceed the configured max-line-size.
- Since:
- 1.3.0
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionSend the oversized message to dead letters, continuing with stream processing.Fail the stream with an IllegalStateException when an oversized message is encountered.Log a warning and skip the oversized message, continuing with stream processing.Log an info message and truncate the oversized message to the configured max-line-size, continuing with stream processing.
- 
Method SummaryModifier and TypeMethodDescriptionasScala()Convert this Java enum to the corresponding Scala enum value.static OversizedSseStrategyfromScala(OversizedSseStrategy scalaStrategy) Convert from a Scala enum value to the corresponding Java enum value.static OversizedSseStrategyReturns the enum constant of this class with the specified name.static OversizedSseStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
FailStreamFail the stream with an IllegalStateException when an oversized message is encountered. This is the default behavior to maintain backward compatibility.
- 
LogAndSkipLog a warning and skip the oversized message, continuing with stream processing.
- 
TruncateLog an info message and truncate the oversized message to the configured max-line-size, continuing with stream processing.
- 
DeadLetterSend the oversized message to dead letters, continuing with stream processing.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
asScalaConvert this Java enum to the corresponding Scala enum value.
- 
fromScalaConvert from a Scala enum value to the corresponding Java enum value.
 
-