Package com.solace.serdes.avro
Enum AvroProperties.AvroEncoding
- java.lang.Object
-
- java.lang.Enum<AvroProperties.AvroEncoding>
-
- com.solace.serdes.avro.AvroProperties.AvroEncoding
-
- All Implemented Interfaces:
Serializable
,Comparable<AvroProperties.AvroEncoding>
- Enclosing class:
- AvroProperties
public static enum AvroProperties.AvroEncoding extends Enum<AvroProperties.AvroEncoding>
Options forAvroProperties.ENCODING_TYPE
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
TheAvroSerializer
will use the Avro DirectBinaryEncoder.JSON
TheAvroSerializer
will use the Avro JsonEncoder.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AvroProperties.AvroEncoding
valueOf(String name)
Returns the enum constant of this type with the specified name.static AvroProperties.AvroEncoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BINARY
public static final AvroProperties.AvroEncoding BINARY
TheAvroSerializer
will use the Avro DirectBinaryEncoder.
-
JSON
public static final AvroProperties.AvroEncoding JSON
TheAvroSerializer
will use the Avro JsonEncoder.
-
-
Method Detail
-
values
public static AvroProperties.AvroEncoding[] 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 (AvroProperties.AvroEncoding c : AvroProperties.AvroEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvroProperties.AvroEncoding 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
-
-