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