public class FloatSerializer extends Object implements Serializer<Float>
Constructor and Description |
---|
FloatSerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(String topic,
Float data)
Convert
data into a byte array. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, configure, serialize
public byte[] serialize(String topic, Float data)
Serializer
data
into a byte array.serialize
in interface Serializer<Float>
topic
- topic associated with datadata
- typed data