protected abstract fun doSerialize(topic: String, data: T): ByteArray
Extending classes must implement this method to convert data of type T to a ByteArray.
topic - associated with data
topic
data - to serialize
data
SerializationException -
SerializationException
Return ByteArray serialized from data
See Also
serialize