Package org.apache.flink.model.openai
Enum AbstractOpenAIModelFunction.RetryFallbackStrategy
- java.lang.Object
-
- java.lang.Enum<AbstractOpenAIModelFunction.RetryFallbackStrategy>
-
- org.apache.flink.model.openai.AbstractOpenAIModelFunction.RetryFallbackStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<AbstractOpenAIModelFunction.RetryFallbackStrategy>,org.apache.flink.configuration.DescribedEnum
- Enclosing class:
- AbstractOpenAIModelFunction
public static enum AbstractOpenAIModelFunction.RetryFallbackStrategy extends Enum<AbstractOpenAIModelFunction.RetryFallbackStrategy> implements org.apache.flink.configuration.DescribedEnum
The fallback strategy for when retry attempts are exhausted. It should be identical toAbstractOpenAIModelFunction.ErrorHandlingStrategyexcept that it does not supportAbstractOpenAIModelFunction.ErrorHandlingStrategy.RETRY.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.configuration.description.InlineElementgetDescription()static AbstractOpenAIModelFunction.RetryFallbackStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractOpenAIModelFunction.RetryFallbackStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAILOVER
public static final AbstractOpenAIModelFunction.RetryFallbackStrategy FAILOVER
-
IGNORE
public static final AbstractOpenAIModelFunction.RetryFallbackStrategy IGNORE
-
-
Method Detail
-
values
public static AbstractOpenAIModelFunction.RetryFallbackStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractOpenAIModelFunction.RetryFallbackStrategy c : AbstractOpenAIModelFunction.RetryFallbackStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractOpenAIModelFunction.RetryFallbackStrategy 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 nameNullPointerException- if the argument is null
-
getDescription
public org.apache.flink.configuration.description.InlineElement getDescription()
- Specified by:
getDescriptionin interfaceorg.apache.flink.configuration.DescribedEnum
-
-