public final class KafkaMessageCodec extends Object
| Modifier and Type | Method and Description |
|---|---|
static co.cask.cdap.notifications.service.kafka.KafkaMessage |
decode(ByteBuffer byteBuffer) |
static ByteBuffer |
encode(co.cask.cdap.notifications.service.kafka.KafkaMessage message) |
public static ByteBuffer encode(co.cask.cdap.notifications.service.kafka.KafkaMessage message) throws IOException
IOExceptionpublic static co.cask.cdap.notifications.service.kafka.KafkaMessage decode(ByteBuffer byteBuffer) throws IOException
IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.