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