Package com.linkedin.venice.router.api
Enum RouterExceptionAndTrackingUtils.FailureType
- java.lang.Object
-
- java.lang.Enum<RouterExceptionAndTrackingUtils.FailureType>
-
- com.linkedin.venice.router.api.RouterExceptionAndTrackingUtils.FailureType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RouterExceptionAndTrackingUtils.FailureType>
- Enclosing class:
- RouterExceptionAndTrackingUtils
public static enum RouterExceptionAndTrackingUtils.FailureType extends java.lang.Enum<RouterExceptionAndTrackingUtils.FailureType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REGULAR
RESOURCE_NOT_FOUND
RETRY_ABORTED_BY_NO_AVAILABLE_REPLICA
SMART_RETRY_ABORTED_BY_DELAY_CONSTRAINT
SMART_RETRY_ABORTED_BY_MAX_RETRY_ROUTE_LIMIT
SMART_RETRY_ABORTED_BY_SLOW_ROUTE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RouterExceptionAndTrackingUtils.FailureType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RouterExceptionAndTrackingUtils.FailureType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGULAR
public static final RouterExceptionAndTrackingUtils.FailureType REGULAR
-
RESOURCE_NOT_FOUND
public static final RouterExceptionAndTrackingUtils.FailureType RESOURCE_NOT_FOUND
-
SMART_RETRY_ABORTED_BY_SLOW_ROUTE
public static final RouterExceptionAndTrackingUtils.FailureType SMART_RETRY_ABORTED_BY_SLOW_ROUTE
-
SMART_RETRY_ABORTED_BY_DELAY_CONSTRAINT
public static final RouterExceptionAndTrackingUtils.FailureType SMART_RETRY_ABORTED_BY_DELAY_CONSTRAINT
-
SMART_RETRY_ABORTED_BY_MAX_RETRY_ROUTE_LIMIT
public static final RouterExceptionAndTrackingUtils.FailureType SMART_RETRY_ABORTED_BY_MAX_RETRY_ROUTE_LIMIT
-
RETRY_ABORTED_BY_NO_AVAILABLE_REPLICA
public static final RouterExceptionAndTrackingUtils.FailureType RETRY_ABORTED_BY_NO_AVAILABLE_REPLICA
-
-
Method Detail
-
values
public static RouterExceptionAndTrackingUtils.FailureType[] 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 (RouterExceptionAndTrackingUtils.FailureType c : RouterExceptionAndTrackingUtils.FailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RouterExceptionAndTrackingUtils.FailureType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-