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