Class LocalTimeSchema

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

public class LocalTimeSchema extends AbstractSchema<LocalTime>
A schema for `java.time.LocalTime`.
  • Constructor Details

    • LocalTimeSchema

      public LocalTimeSchema()
  • Method Details

    • of

      public static LocalTimeSchema of()
    • encode

      public byte[] encode(LocalTime message)
    • decode

      public LocalTime decode(byte[] bytes)
    • decode

      public LocalTime 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<LocalTime>
      Parameters:
      byteBuf - the byte buffer to decode
      Returns:
      the deserialized object
    • getSchemaInfo

      public SchemaInfo getSchemaInfo()