Class LocalDateTimeSchema

java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<LocalDateTime>
org.apache.pulsar.client.impl.schema.LocalDateTimeSchema
All Implemented Interfaces:
Cloneable, Schema<LocalDateTime>

public class LocalDateTimeSchema extends AbstractSchema<LocalDateTime>
A schema for `java.time.LocalDateTime`.
  • Field Details

  • Constructor Details

    • LocalDateTimeSchema

      public LocalDateTimeSchema()
  • Method Details

    • of

      public static LocalDateTimeSchema of()
    • encode

      public byte[] encode(LocalDateTime message)
    • decode

      public LocalDateTime decode(byte[] bytes)
    • decode

      public LocalDateTime decode(io.netty.buffer.ByteBuf byteBuf)
      Description copied from class: AbstractSchema
      Decode a byteBuf into an object using the schema definition and deserializer implementation

      Do not modify reader/writer index of ByteBuf so, it can be reused to access correct data.

      Specified by:
      decode in class AbstractSchema<LocalDateTime>
      Parameters:
      byteBuf - the byte buffer to decode
      Returns:
      the deserialized object
    • getSchemaInfo

      public SchemaInfo getSchemaInfo()