Class VoidSerializer

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

public class VoidSerializer extends Object implements Serializer<Void>
  • Constructor Details

    • VoidSerializer

      public VoidSerializer()
  • Method Details

    • serialize

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