decode

fun decode(record: TransportRecord): M

The message record carries, read-only.

Throws

when the record has no payload

when its key (on a keyed record) or topic does not match the decoded message