Class DoubleSerializer

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

public class DoubleSerializer
extends Object
implements Serializer<Double>
  • Constructor Details

    • DoubleSerializer

      public DoubleSerializer()
  • Method Details

    • serialize

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