public class LongSerializer extends Object implements Serializer<Long>
Constructor and Description |
---|
LongSerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(String topic,
Long 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, Long data)
Serializer
data
into a byte array.serialize
in interface Serializer<Long>
topic
- topic associated with datadata
- typed data