Enum Class MessageSchema

java.lang.Object
java.lang.Enum<MessageSchema>
io.micronaut.pulsar.MessageSchema
All Implemented Interfaces:
Serializable, Comparable<MessageSchema>, Constable

public enum MessageSchema extends Enum<MessageSchema>
Supported schema types.
Since:
1.0
Author:
Haris Secic
  • Enum Constant Details

    • BYTES

      public static final MessageSchema BYTES
      A sequence of 8-bit unsigned bytes.
    • BYTEBUFFER

      public static final MessageSchema BYTEBUFFER
      Effectively a `BYTES` schema.
    • INT8

      public static final MessageSchema INT8
      Effectively a `BYTES` schema of a single byte.
    • INT16

      public static final MessageSchema INT16
      A 16-bit signed integer.
    • INT32

      public static final MessageSchema INT32
      A 32-bit signed integer.
    • INT64

      public static final MessageSchema INT64
      A 64-bit signed integer.
    • BOOL

      public static final MessageSchema BOOL
      A binary value.
    • FLOAT

      public static final MessageSchema FLOAT
      A single precision (32-bit) IEEE 754 floating-point number.
    • DOUBLE

      public static final MessageSchema DOUBLE
      A double-precision (64-bit) IEEE 754 floating-point number.
    • DATE

      public static final MessageSchema DATE
      A schema for `java.util.Date` or `java.sql.Date`.
    • TIME

      public static final MessageSchema TIME
      A schema for `java.sql.Time`.
    • TIMESTAMP

      public static final MessageSchema TIMESTAMP
      A schema for `java.sql.Timestamp`.
    • STRING

      public static final MessageSchema STRING
      A Unicode character sequence.
    • JSON

      public static final MessageSchema JSON
      A schema for JSON data.
    • AVRO

      public static final MessageSchema AVRO
      An Apache Avro schema.
    • PROTOBUF

      public static final MessageSchema PROTOBUF
      A schema for Protocol Buffer generated messages.
  • Method Details

    • values

      public static MessageSchema[] 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

      public static MessageSchema valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSchemaResolverName

      @Nullable public @Nullable String getSchemaResolverName()