Class LongSerializer

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

public class LongSerializer
extends Object
implements Serializer<Long>
  • Constructor Details

    • LongSerializer

      public LongSerializer()
  • Method Details

    • serialize

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