co.cask.cdap.kafka.flow
Class KafkaMessage<OFFSET>

java.lang.Object
  extended by co.cask.cdap.kafka.flow.KafkaMessage<OFFSET>
Type Parameters:
OFFSET - Type of message offset

public class KafkaMessage<OFFSET>
extends Object

Represents a Kafka message.


Constructor Summary
KafkaMessage(org.apache.twill.kafka.client.TopicPartition topicPartition, OFFSET nextOffset, ByteBuffer key, ByteBuffer payload)
           
 
Method Summary
 ByteBuffer getKey()
           
 OFFSET getNextOffset()
           
 ByteBuffer getPayload()
           
 org.apache.twill.kafka.client.TopicPartition getTopicPartition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KafkaMessage

public KafkaMessage(org.apache.twill.kafka.client.TopicPartition topicPartition,
                    OFFSET nextOffset,
                    ByteBuffer key,
                    ByteBuffer payload)
Method Detail

getTopicPartition

public org.apache.twill.kafka.client.TopicPartition getTopicPartition()

getNextOffset

public OFFSET getNextOffset()

getKey

public ByteBuffer getKey()

getPayload

public ByteBuffer getPayload()


Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.