Class BooleanSerializer

java.lang.Object
org.apache.kafka.common.serialization.BooleanSerializer
All Implemented Interfaces:
Closeable, AutoCloseable, Serializer<Boolean>

public class BooleanSerializer extends Object implements Serializer<Boolean>
  • Constructor Details

    • BooleanSerializer

      public BooleanSerializer()
  • Method Details

    • serialize

      public byte[] serialize(String topic, Boolean data)
      Description copied from interface: Serializer
      Convert data into a byte array.
      Specified by:
      serialize in interface Serializer<Boolean>
      Parameters:
      topic - topic associated with data
      data - typed data
      Returns:
      serialized bytes