Package me.snowdrop.istio.api.mixer.v1
Enum RepeatedAttributesSemantics
- java.lang.Object
-
- java.lang.Enum<RepeatedAttributesSemantics>
-
- me.snowdrop.istio.api.mixer.v1.RepeatedAttributesSemantics
-
- All Implemented Interfaces:
Serializable,Comparable<RepeatedAttributesSemantics>
public enum RepeatedAttributesSemantics extends Enum<RepeatedAttributesSemantics>
Used to signal how the sets of compressed attributes should be reconstitued server-side.- Author:
- Christophe Laprun
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELTA_ENCODINGUse delta encoding between sets of compressed attributes to reduce the overall on-wire request size.INDEPENDENT_ENCODINGTreat each set of compressed attributes as complete - independent from other sets in this request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static RepeatedAttributesSemanticsvalueOf(String name)Returns the enum constant of this type with the specified name.static RepeatedAttributesSemantics[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELTA_ENCODING
public static final RepeatedAttributesSemantics DELTA_ENCODING
Use delta encoding between sets of compressed attributes to reduce the overall on-wire request size. Each individual set of attributes is used to modify the previous set. NOTE: There is no way with this encoding to specify attribute value deletion. This option should be used with extreme caution.
-
INDEPENDENT_ENCODING
public static final RepeatedAttributesSemantics INDEPENDENT_ENCODING
Treat each set of compressed attributes as complete - independent from other sets in this request. This will result in on-wire duplication of attributes and values, but will allow for proper accounting of absent values in overall encoding.
-
-
Method Detail
-
values
public static RepeatedAttributesSemantics[] 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 (RepeatedAttributesSemantics c : RepeatedAttributesSemantics.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RepeatedAttributesSemantics 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
-
value
public int value()
-
-