Package io.micronaut.pulsar
Enum Class MessageSchema
- All Implemented Interfaces:
Serializable
,Comparable<MessageSchema>
,Constable
Supported schema types.
- Since:
- 1.0
- Author:
- Haris Secic
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn Apache Avro schema.A binary value.Effectively a `BYTES` schema.A sequence of 8-bit unsigned bytes.A schema for `java.util.Date` or `java.sql.Date`.A double-precision (64-bit) IEEE 754 floating-point number.A single precision (32-bit) IEEE 754 floating-point number.A 16-bit signed integer.A 32-bit signed integer.A 64-bit signed integer.Effectively a `BYTES` schema of a single byte.A schema for JSON data.A schema for Protocol Buffer generated messages.A Unicode character sequence.A schema for `java.sql.Time`.A schema for `java.sql.Timestamp`. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
static MessageSchema
Returns the enum constant of this class with the specified name.static MessageSchema[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTES
A sequence of 8-bit unsigned bytes. -
BYTEBUFFER
Effectively a `BYTES` schema. -
INT8
Effectively a `BYTES` schema of a single byte. -
INT16
A 16-bit signed integer. -
INT32
A 32-bit signed integer. -
INT64
A 64-bit signed integer. -
BOOL
A binary value. -
FLOAT
A single precision (32-bit) IEEE 754 floating-point number. -
DOUBLE
A double-precision (64-bit) IEEE 754 floating-point number. -
DATE
A schema for `java.util.Date` or `java.sql.Date`. -
TIME
A schema for `java.sql.Time`. -
TIMESTAMP
A schema for `java.sql.Timestamp`. -
STRING
A Unicode character sequence. -
JSON
A schema for JSON data. -
AVRO
An Apache Avro schema. -
PROTOBUF
A schema for Protocol Buffer generated messages.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getSchemaResolverName
-