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, waitclose, configure, serializepublic byte[] serialize(String topic, Long data)
Serializerdata into a byte array.serialize in interface Serializer<Long>topic - topic associated with datadata - typed data